Function at 0x471f70
Capabilities:
Get common file path
Get keyboard layout
Get program files directory
Get session user name
Get startup folder

Disassembly:
sub esp, 0x53c
push ebx
push ebp
mov ebp, dword [esp + 0x54c]
push esi
mov esi, dword [esp + 0x54c]
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x72]
push ecx
mov word [esp + 0x74], ax
call fcn.00414710
add esp, 0xc
xor edx, edx
push 0x208
push edx
lea eax, [esp + 0x342]
push eax
mov word [esp + 0x344], dx
call fcn.00414710
mov ecx, dword [esp + 0x564]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x10], ecx
lea ebx, [edi + 1]
mov edx, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x492950]
push edx
push eax
call fcn.00414904
add esp, 8
test eax, eax
je 0x471ff2
add edi, ebx
cmp edi, 0x60
jl 0x471fd2
cmp edi, 0x60
jne 0x47206d
mov edi, 0x48c554
lea esi, [esp + 0x28]
call fcn.004015c0
lea ecx, [esp + 0x558]
push ecx
mov eax, esi
mov dword [esp + 0x14], 0
call fcn.00407230
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
xor ecx, ecx
call fcn.004074f0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x472057
mov ecx, esi
call fcn.004020b0
lea ecx, [esp + 0x558]
call fcn.004020b0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x53c
ret 0x18
push eax
mov ebx, ebp
call fcn.004042f0
lea ecx, [esp + 0x28]
call fcn.004020b0
jmp case.0x472076.87
cmp edi, 0x5f
ja case.0x472076.87
jmp dword [edi*4 + 0x472d54]
mov edi, 0x48c5ac
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, 0x485eb0
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, 0x48813c
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, 0x48c5b0
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
lea eax, [edx + esi + 4]
call fcn.00403bc0
mov edi, dword [eax + 0x14]
mov esi, ebp
call fcn.004043a0
mov dword [ebp], edi
jmp 0x472d35
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi + 4]
call fcn.00403bc0
mov edi, dword [eax + 0x1c]
mov esi, ebp
call fcn.004043a0
mov dword [ebp], edi
jmp 0x472d35
lea edx, [esp + 0x18]
push edx
call dword [0x483208]
movzx eax, word [esp + 0x26]
push eax
push 0x48c5b4
lea ecx, [esp + 0x70]
push ecx
call fcn.00414a5a
add esp, 0xc
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x48c5c0
lea edx, [esp + 0x2d0]
push edx
lea eax, [esp + 0x2bc]
push eax
call fcn.004442af
push eax
call fcn.0045027f
mov edi, eax
mov esi, ebp
call fcn.0040f9d0
lea ecx, [esp + 0x2cc]
call fcn.004020b0
jmp case.0x472076.87
push 0x48c5c8
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x314]
push edx
call fcn.004442af
push eax
call fcn.0045027f
mov edi, eax
mov esi, ebp
call fcn.0040f9d0
lea ecx, [esp + 0x27c]
call fcn.004020b0
jmp case.0x472076.87
push 0x48c5d0
lea eax, [esp + 0x2f0]
push eax
lea ecx, [esp + 0x31c]
push ecx
call fcn.004442af
push eax
call fcn.0045027f
mov edi, eax
mov esi, ebp
call fcn.0040f9d0
lea ecx, [esp + 0x2ec]
call fcn.004020b0
jmp case.0x472076.87
push 0x488134
lea edx, [esp + 0x290]
push edx
lea eax, [esp + 0x324]
push eax
call fcn.004442af
push eax
call fcn.0045027f
mov edi, eax
mov esi, ebp
call fcn.0040f9d0
lea ecx, [esp + 0x28c]
call fcn.004020b0
jmp case.0x472076.87
push 0x48c5d8
lea ecx, [esp + 0x2a8]
push ecx
lea edx, [esp + 0x30c]
push edx
call fcn.004442af
push eax
call fcn.0045027f
mov edi, eax
mov esi, ebp
call fcn.0040f9d0
lea ecx, [esp + 0x2a4]
call fcn.004020b0
jmp case.0x472076.87
push 0x48c5e0
lea eax, [esp + 0x2c0]
push eax
lea ecx, [esp + 0x2a4]
push ecx
call fcn.004442af
push eax
call fcn.0045027f
mov edi, eax
mov esi, ebp
call fcn.0040f9d0
lea ecx, [esp + 0x2bc]
call fcn.004020b0
jmp case.0x472076.87
lea edx, [esp + 0x2fc]
push edx
call fcn.004442af
push eax
call fcn.004502fb
push eax
push 0x488134
lea eax, [esp + 0x70]
push eax
jmp 0x47211c
push 0x48c5e8
lea ecx, [esp + 0x2e0]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.004442af
push eax
call fcn.0045027f
mov edi, eax
mov esi, ebp
call fcn.0040f9d0
lea ecx, [esp + 0x2dc]
call fcn.004020b0
jmp case.0x472076.87
lea eax, [esp + 0x68]
push eax
push 0
push 0
push 0x26
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0x2b
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x68]
push edx
push 0
push 0
push 5
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x68]
push eax
push 0
push 0
push 0x23
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0x19
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x68]
push edx
push 0
push 0
push 0x2e
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x68]
push eax
push 0
push 0
push 0x1f
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0x17
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x68]
push edx
push 0
push 0
push 0x16
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x68]
push eax
push 0
push 0
push 0x18
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x68]
push edx
push 0
push 0
push 0x10
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x68]
push eax
push 0
push 0
push 6
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 2
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x68]
push edx
push 0
push 0
push 0xb
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x68]
push eax
push 0
push 0
push 7
push 0
call dword [0x483468]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x1c], 0x104
call dword [0x4832c8]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea eax, [esp + 0x6c]
push eax
call dword [0x4832cc]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov ecx, dword [0x4a6dbc]
cmp byte [ecx + 0x2a], 0
push 0x104
lea edx, [esp + 0x6c]
push edx
je 0x4725a8
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
call fcn.00435d6d
call eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00435f99
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
call dword [0x4832d0]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 6
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 3
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 9
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 5
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 0xa
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 2
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 7
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 8
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 4
jmp 0x472d35
mov esi, ebp
cmp byte [0x494cb2], bl
jne 0x472d29
call fcn.004043a0
mov dword [ebp], ebx
jmp 0x472d35
mov esi, ebp
cmp byte [0x4a5ee9], bl
jne 0x472d29
call fcn.004043a0
mov dword [ebp], ebx
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 0x40
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 0x41
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 0x42
jmp 0x472d35
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 0x43
jmp 0x472d35
mov edi, dword [esi + 0xc0]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, dword [esi + 0xb0]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, dword [esi + 0xd0]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov eax, dword [esi + 0xec]
push eax
call fcn.004397f3
mov esi, ebp
mov edi, eax
call fcn.004043a0
mov dword [ebp], edi
jmp 0x472d35
lea ecx, [esp + 0x68]
push ecx
push 0x104
call dword [0x483338]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edx, dword [0x4a6dbc]
movzx eax, word [edx + 0x2c]
test eax, eax
je 0x4727ae
cmp eax, 6
je 0x47278b
mov ebx, ebp
cmp eax, 9
jne 0x47287e
mov edi, 0x48c604
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, str.IA64
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
call fcn.00412230
mov edi, 0x48c604
test al, al
jne 0x472128
mov edi, 0x48c5f0
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, str.WIN32_NT
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov eax, dword [0x4a6dbc]
cmp byte [eax + 0x28], bl
jne 0x4727eb
mov edi, str.WIN_2008R2
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
cmp byte [eax + 0x26], bl
jne 0x472801
mov edi, str.WIN_7
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
cmp byte [eax + 0x24], bl
jne 0x472817
mov edi, str.WIN_2008
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
cmp byte [eax + 0x22], bl
jne 0x47282d
mov edi, str.WIN_VISTA
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
cmp byte [eax + 0x20], bl
jne 0x472843
mov edi, str.WIN_2003
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
cmp byte [eax + 0x1e], bl
jne 0x472868
cmp byte [eax + 0x2e], 0
mov edi, str.WIN_XPe
jne 0x472128
mov edi, str.WIN_XP
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
cmp byte [eax + 0x1c], bl
mov ebx, ebp
jne 0x47287e
mov edi, str.WIN_2000
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, str.UNKNOWN
call fcn.0040f8f0
jmp case.0x472076.87
mov eax, dword [0x4a6dbc]
mov edi, dword [eax + 8]
mov esi, ebp
call fcn.004043a0
mov dword [ebp], edi
jmp 0x472d35
mov edi, dword [0x4a6dbc]
add edi, 0xc
mov esi, ebp
call fcn.0040f9d0
jmp case.0x472076.87
push 0x104
push str.InstallLanguage
push str.SYSTEMCurrentControlSetControlNlsLanguage
push reloc.WSOCK32.dll_bind
lea esi, [esp + 0x78]
call fcn.004104b0
add esp, 0x10
mov edi, esi
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
push str.SchemeLangID
push str.Control_PanelAppearance
push reloc.WSOCK32.dll_accept
lea esi, [esp + 0x78]
call fcn.004104b0
movzx eax, word [esp + 0x78]
push 4
push esi
push eax
mov dword [esp + 0x30], eax
call fcn.00437a74
add esp, 0x1c
mov edi, esi
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x324]
push edx
call dword [0x4834ac]
lea edi, [esp + 0x324]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x338]
push str.3__3__3__3
push eax
call fcn.00412bb1
lea ecx, [esp + 0x340]
push ecx
xor esi, esi
xor edi, edi
call fcn.004127f5
add esp, 0xc
test eax, eax
jle 0x4729b5
movzx eax, word [esp + edi*2 + 0x338]
cmp ax, 0x20
je 0x47299f
cmp ax, 0x2c
jne 0x472995
mov edx, 0x2e
mov word [esp + esi*2 + 0x338], dx
jmp 0x47299d
mov word [esp + esi*2 + 0x338], ax
add esi, ebx
lea eax, [esp + 0x338]
push eax
add edi, ebx
call fcn.004127f5
add esp, 4
cmp edi, eax
jl 0x472972
xor ecx, ecx
lea edi, [esp + 0x338]
mov ebx, ebp
mov word [esp + esi*2 + 0x338], cx
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea edx, [esp + 0x6c]
push edx
push 0
call dword [0x48331c]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00438109
add esp, 8
lea edi, [esp + 0x48]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x48]
push ecx
push 2
call fcn.00438109
add esp, 8
lea edi, [esp + 0x48]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x48]
push edx
push 3
call fcn.00438109
add esp, 8
lea edi, [esp + 0x48]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x48]
push eax
push 4
call fcn.00438109
add esp, 8
lea edi, [esp + 0x48]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea ecx, [esp + 0x38]
push ecx
call dword [0x48360c]
push eax
call dword [0x48365c]
mov edi, dword [esp + 0x40]
mov esi, ebp
call fcn.004043a0
mov dword [ebp], edi
jmp 0x472d35
lea edx, [esp + 0x38]
push edx
call dword [0x48360c]
push eax
call dword [0x48365c]
mov edi, dword [esp + 0x44]
mov esi, ebp
call fcn.004043a0
mov dword [ebp], edi
jmp 0x472d35
call dword [0x48360c]
mov edi, eax
push edi
call dword [0x4835f0]
push 0xc
push eax
mov dword [esp + 0x18], eax
call dword [0x48311c]
mov esi, ebp
mov dword [esp + 0x18], eax
call fcn.004043a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push ecx
push edi
mov dword [ebp + 8], ebx
mov dword [ebp], eax
call dword [0x4835ec]
jmp case.0x472076.87
call dword [0x48360c]
mov edi, eax
push edi
call dword [0x4835f0]
push 0x74
push eax
mov dword [esp + 0x18], eax
call dword [0x48311c]
mov esi, ebp
mov dword [esp + 0x18], eax
call fcn.004043a0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
push edi
mov dword [ebp + 8], ebx
mov dword [ebp], edx
call dword [0x4835ec]
jmp case.0x472076.87
push 0x104
lea ecx, [esp + 0x6c]
push ecx
push str.COMSPEC
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea edx, [esp + 0x68]
push edx
push 0x104
call dword [0x48323c]
lea esi, [esp + 0x68]
call fcn.004114a0
mov edi, esi
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x1c], 0x104
call dword [0x483014]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov eax, dword [0x4a571c]
cmp eax, 3
je case.0x472076.43
cmp eax, 4
jne case.0x472076.30
mov esi, ebp
call fcn.004043a0
mov dword [ebp], ebx
jmp 0x472d35
push 0x104
lea edx, [esp + 0x6c]
push edx
push str.USERPROFILE
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea eax, [esp + 0x6c]
push eax
push str.HOMEDRIVE
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea ecx, [esp + 0x6c]
push ecx
push str.HOMEPATH
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea edx, [esp + 0x6c]
push edx
push str.HOMESHARE
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea eax, [esp + 0x6c]
push eax
push str.LOGONSERVER
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea ecx, [esp + 0x6c]
push ecx
push str.USERDOMAIN
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
push 0x104
lea edx, [esp + 0x6c]
push edx
push str.USERDNSDOMAIN
call dword [0x4832a4]
lea edi, [esp + 0x68]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
mov edi, dword [esi + 0x140]
mov esi, ebp
call fcn.004043a0
mov dword [ebp], edi
jmp 0x472d35
mov edi, dword [esi + 0x144]
mov ebx, ebp
call fcn.0040f8f0
jmp case.0x472076.87
call dword [0x4832d4]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x472d0c
fadd qword [0x48d260]
mov esi, ebp
fstp qword [esp + 0x18]
call fcn.004043a0
fld qword [esp + 0x18]
fstp qword [ebp]
mov dword [ebp + 8], 3
jmp case.0x472076.87
mov esi, ebp
call fcn.004043a0
mov dword [ebp], 0
mov dword [ebp + 8], ebx
lea ecx, [esp + 0x558]
call fcn.004020b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x53c
ret 0x18