Function at 0x470950
Capabilities:
Identify system language via api
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591c94
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5f4964]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20c], ecx
lea eax, [ebp - 0x1ac]
push eax
call fcn.0041a080
add esp, 4
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x214]
push edx
mov ecx, dword [ebp - 0x20c]
add ecx, 4
call fcn.004150c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.00423040
push 0x5aa140
lea eax, [ebp - 0x34]
push eax
call fcn.004a7200
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004178e0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20c]
call fcn.00471110
test eax, eax
jne 0x470a2e
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00417280
mov eax, dword [ebp - 0x1b0]
jmp 0x4710ed
push 0x5aa150
mov edx, dword [ebp - 0x20c]
add edx, 4
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.004193b0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00422f30
push eax
push 0x40
push 0x40
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.00415f30
push eax
push 0x5aa168
push 0x5aa170
push 0x5aa184
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.00415dd0
lea ecx, [ebp - 0x14]
call fcn.00434000
mov byte [ebp - 4], 3
push 0x17
push 0
push 0x5aa2cc
push 0x5aa18c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1b8]
push edx
call fcn.00484520
add esp, 0xc
mov ecx, eax
call fcn.00471700
lea ecx, [ebp - 0x14]
call fcn.0048aab0
movzx eax, al
test eax, eax
je 0x471019
push str.CommonXMLCommonResource.xml
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.0041a950
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.004178e0
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00415010
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20c]
add eax, 0x24
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.0048a220
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x1b9], dl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c0]
call fcn.00423040
movzx eax, byte [ebp - 0x1b9]
test eax, eax
je 0x470b8f
mov ecx, dword [ebp - 0x20c]
add ecx, 0x24
call fcn.0041db30
push 0x5aa1dc
lea ecx, [ebp - 0x1c4]
call fcn.00415010
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c4]
push ecx
mov ecx, dword [ebp - 0x20c]
add ecx, 0x24
call fcn.0041da80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c4]
call fcn.00423040
lea ecx, [ebp - 0x54]
call fcn.004178e0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
push eax
call fcn.0041bfd0
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], edx
mov byte [ebp - 4], 7
push 0
lea ecx, [ebp - 0x14]
call fcn.00484710
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004719d0
lea ecx, [ebp - 0x14]
call fcn.00453fe0
push eax
push 0
mov ecx, dword [ebp - 0x20c]
add ecx, 0xc
call fcn.00484710
mov ecx, eax
call fcn.00471af0
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.00422f30
push ecx
mov ecx, esp
mov dword [ebp - 0x1cc], esp
push eax
call fcn.0041bfd0
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20c]
add ecx, 0xc
call fcn.00484710
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00471a60
push ecx
mov ecx, esp
mov dword [ebp - 0x1d0], esp
push 0x5aa1e4
call fcn.0041bfd0
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
mov byte [ebp - 4], 9
lea edx, [ebp - 0x1d4]
push edx
lea ecx, [ebp - 0x14]
call fcn.00484710
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00471920
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x234]
call fcn.00464450
push eax
lea ecx, [ebp - 0x70]
call fcn.00419920
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1d4]
call fcn.0041c080
push 0x5aa1f4
lea ecx, [ebp - 0x70]
call fcn.004178e0
push eax
call fcn.0056fc26
add esp, 8
test eax, eax
je 0x470d32
push ecx
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push 0x5aa1fc
call fcn.0041bfd0
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x20c]
add ecx, 0xc
call fcn.00484710
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00471a60
mov edx, dword [ebp - 0x20c]
mov byte [edx + 0x21], 1
push 0x5aa204
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.004150e0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 0x38], ax
movzx eax, word [ebp - 0x38]
cmp eax, 0x419
jne 0x470d7e
push 0x5aa20c
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
push ecx
call fcn.004716e0
add esp, 8
movzx edx, al
test edx, edx
je 0x470d7e
mov ecx, dword [ebp - 0x20c]
call fcn.004715e0
mov ecx, dword [ebp - 0x20c]
mov byte [ecx + 0x20], al
jmp 0x471001
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push str.autolinebreak
call fcn.0041bfd0
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x244], edx
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x14]
call fcn.00484710
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00471920
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], ecx
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x24c]
call fcn.00464450
push eax
lea ecx, [ebp - 0x74]
call fcn.00415010
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1e0]
call fcn.0041c080
push 0
push 0x5aa230
lea ecx, [ebp - 0x74]
call fcn.00415250
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
jne 0x470e45
push 0x5aa234
lea ecx, [ebp - 0x74]
call fcn.00422f30
push eax
call fcn.0056fc26
add esp, 8
test eax, eax
jne 0x470e40
mov ecx, dword [ebp - 0x20c]
call fcn.004715e0
mov edx, dword [ebp - 0x20c]
mov byte [edx + 0x20], al
jmp 0x470ff5
mov eax, dword [ebp - 0x78]
add eax, 1
push eax
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.0041d840
mov byte [ebp - 4], 0x12
push 0
push 0x5aa23c
lea ecx, [ebp - 0x7c]
call fcn.00415250
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
je 0x470fe9
mov edx, dword [ebp - 0x78]
add edx, 1
push edx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041d840
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x78]
push ecx
push 0x5aa240
lea edx, [ebp - 0x1e4]
push edx
lea ecx, [ebp - 0x80]
call fcn.00415120
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
call fcn.00422f30
push eax
call fcn.0056bafb
add esp, 4
mov dword [ebp - 0x1a4], eax
lea ecx, [ebp - 0x1e4]
call fcn.00423040
lea eax, [ebp - 0x78]
push eax
push 0x5aa244
lea ecx, [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00415120
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x19c], 0
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x198]
push edx
call fcn.0056b960
add esp, 0xc
mov dword [ebp - 0x19c], 0x114
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x1a4]
cmp ecx, dword [ebp - 0x198]
jne 0x470fce
push 0x5aa248
lea edx, [ebp - 0x1a0]
push edx
call fcn.004716a0
add esp, 8
movzx eax, al
test eax, eax
je 0x470f6f
mov ecx, dword [ebp - 0x20c]
call fcn.004715e0
mov ecx, dword [ebp - 0x20c]
mov byte [ecx + 0x20], al
jmp 0x470fce
lea ecx, [ebp - 0x1a0]
call fcn.00422f30
push eax
call fcn.0056bafb
add esp, 4
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x1a8]
cmp edx, dword [ebp - 0x194]
jne 0x470fb5
mov ecx, dword [ebp - 0x20c]
call fcn.004715e0
movzx eax, al
test eax, eax
je 0x470fb5
mov dword [ebp - 0x254], 1
jmp 0x470fbf
mov dword [ebp - 0x254], 0
mov ecx, dword [ebp - 0x20c]
mov dl, byte [ebp - 0x254]
mov byte [ecx + 0x20], dl
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a0]
call fcn.00423040
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x80]
call fcn.00423040
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x7c]
call fcn.00423040
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
call fcn.00423040
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00417280
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00417280
mov ecx, dword [ebp - 0x20c]
add ecx, 0x14
call fcn.00422f30
push eax
push 0x5aa24c
lea eax, [ebp - 0x200]
push eax
call fcn.004a7400
add esp, 8
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x25c]
call fcn.004178e0
push eax
lea edx, [ebp - 0x204]
push edx
call fcn.004149b0
add esp, 0xc
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x264]
push ecx
mov ecx, dword [ebp - 0x20c]
add ecx, 0x18
call fcn.004150c0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x204]
call fcn.00423040
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x200]
call fcn.00417280
mov dword [ebp - 0x208], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004744a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00423040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00417280
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0056ab51
mov esp, ebp
pop ebp
ret 4