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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570133
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x198]
call fcn.00401c90
xor ebx, ebx
mov edi, 0x5cfe14
mov dword [ebp - 4], ebx
call fcn.00423c70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x198]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f6a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], cx
mov edx, str.default
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00477590
push 0xffffffffffffffff
push ebx
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00411b80
mov edi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], edi
jb 0x47f6ef
mov edx, dword [ebp - 0x28]
push edx
call fcn.0053c152
add esp, 4
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jae 0x47f6fa
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0047fe40
test eax, eax
jne 0x47f722
cmp dword [ebp - 0x30], edi
jb 0x47f71b
mov eax, dword [ebp - 0x44]
push eax
call fcn.0053c152
add esp, 4
xor eax, eax
jmp 0x47fe1a
lea ecx, [ebp - 0x1a0]
push 0x5cfe14
push ecx
mov esi, 0x58d248
call fcn.00421fe0
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [0x5cfe24]
mov eax, dword [edx - 8]
mov esi, dword [ebp - 0x1a0]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x40
or eax, ecx
jge 0x47f772
mov ecx, 0x40
mov eax, 0x5cfe24
call fcn.00423b90
mov edx, dword [0x5cfe24]
push esi
push 0x40
push edx
push 0x58a634
push 0x58a158
push 0x58a16c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x5cfe24]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0053cd7d
mov edx, dword [0x5cfe24]
mov dword [edx - 0xc], eax
mov edx, dword [0x5cfe24]
xor ecx, ecx
mov word [edx + eax*2], cx
add esp, 8
mov dword [ebp - 0x184], ebx
mov byte [ebp - 4], 5
push str.sites.dll
mov dword [ebp - 0x190], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x47f7e3
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x184]
cmp eax, ebx
je 0x47f801
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
lea eax, [ebp - 0x184]
push eax
push 0x58d0e8
lea ecx, [ebp - 0x190]
push ecx
mov edx, 0x58e434
mov dword [ebp - 0x184], ebx
call fcn.00473770
cmp dword [ebp - 0x184], ebx
je 0x47fd2b
push 0x58e3c0
lea ecx, [ebp - 0x48]
lea esi, [ebp - 0x2c]
call fcn.00418760
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jae 0x47f853
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x188]
push edx
call fcn.00423950
lea eax, [ebp - 0x188]
push 0x5cfe34
push eax
mov byte [ebp - 4], 7
call fcn.004b0270
add esp, 8
test al, al
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x188]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f8a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x47f8fc
mov eax, 0x5cfe34
call fcn.0040f0b0
lea ecx, [ebp - 0x188]
push ecx
mov ecx, 0x58a634
call fcn.00423950
lea edx, [ebp - 0x188]
push edx
mov edi, 0x5cfe34
mov byte [ebp - 4], 8
call fcn.004226a0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x188]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f8fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x47f90c
lea edi, [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x18c], esp
push ecx
call fcn.00421180
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x184]
test ecx, ecx
jne 0x47f933
push 0x80004003
call fcn.0053c010
mov byte [ebp - 4], 6
call fcn.00480720
mov eax, dword [0x5cfe1c]
test eax, eax
jne 0x47f94f
push 0x80004003
call fcn.0053c010
mov ecx, dword [ebp - 0x184]
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
push ecx
push 0
push eax
call edx
mov edi, dword [0x5cfe24]
push ecx
mov eax, esp
mov dword [ebp - 0x18c], esp
push eax
call fcn.00421180
mov byte [ebp - 4], 0xc
cmp dword [0x5cfe1c], 0
jne 0x47f98c
push 0x80004003
call fcn.0053c010
mov byte [ebp - 4], 6
mov ecx, dword [0x5cfe1c]
call fcn.00480680
push ecx
mov ecx, esp
mov dword [ebp - 0x18c], esp
push ecx
mov edi, str.support
call fcn.00421180
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x184]
test ecx, ecx
jne 0x47f9c7
push 0x80004003
call fcn.0053c010
lea edx, [ebp - 0x1ac]
mov byte [ebp - 4], 6
call fcn.0047a240
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
test eax, eax
je 0x47f9e4
mov eax, dword [eax]
jmp 0x47f9e6
xor eax, eax
mov edx, eax
lea eax, [ebp - 0x64]
call fcn.0040eab0
lea edi, [ebp - 0x1ac]
mov byte [ebp - 4], 0x10
call fcn.00421130
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], esi
jae 0x47fa0a
lea eax, [ebp - 0x60]
push 0x58e40c
push eax
call fcn.0053cead
add esp, 8
test eax, eax
je 0x47fa6c
push ecx
mov edx, esp
mov dword [ebp - 0x18c], esp
push edx
mov edi, 0x58a634
call fcn.00421180
mov byte [ebp - 4], 0x11
cmp dword [0x5cfe1c], 0
jne 0x47fa47
push 0x80004003
call fcn.0053c010
mov byte [ebp - 4], 0x10
mov ecx, dword [0x5cfe1c]
call fcn.00480680
mov edx, 0x58a634
mov edi, 0x5cfe24
mov byte [0x5cfe31], 1
call fcn.00423a40
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x419
cmp cx, ax
jne 0x47fa9c
mov eax, 0x5cfe24
call fcn.0046bfb0
test al, al
je 0x47fa9c
call fcn.00480270
mov byte [0x5cfe30], al
jmp 0x47fcf1
push ecx
mov edx, esp
mov dword [ebp - 0x18c], esp
push edx
mov edi, str.autolinebreak
call fcn.00421180
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x184]
test ecx, ecx
jne 0x47fac8
push 0x80004003
call fcn.0053c010
lea edx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x10
call fcn.0047a240
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
test eax, eax
je 0x47fae5
mov eax, dword [eax]
jmp 0x47fae7
xor eax, eax
lea ecx, [ebp - 0x194]
push ecx
mov ecx, eax
call fcn.00423950
mov bl, 0x15
lea edi, [ebp - 0x1a8]
mov byte [ebp - 4], bl
call fcn.00421130
mov ecx, dword [ebp - 0x194]
cmp dword [ecx - 0xc], 0
jl 0x47fb32
push 0x58c7b4
push ecx
call fcn.0053dece
mov ecx, dword [ebp - 0x194]
add esp, 8
test eax, eax
je 0x47fb32
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x47fb57
push 0x58e40c
push ecx
call fcn.0053cead
add esp, 8
test eax, eax
jne 0x47fccb
call fcn.00480270
mov byte [0x5cfe30], al
jmp 0x47fccb
lea ecx, [eax + 1]
lea esi, [ebp - 0x1a4]
lea edx, [ebp - 0x194]
call fcn.00420520
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x1a4]
cmp dword [edi - 0xc], 0
jl 0x47fca7
push 0x58c7b0
push edi
call fcn.0053dece
add esp, 8
test eax, eax
je 0x47fca7
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x47fca7
lea ecx, [eax + 1]
lea esi, [ebp - 0x188]
lea edx, [ebp - 0x1a4]
call fcn.00420520
push 0x580a40
lea edx, [ebp - 0x18c]
push edx
mov eax, esi
push eax
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x198]
mov dword [ebp - 0x198], 0
call fcn.00421010
mov eax, dword [eax]
push eax
call fcn.00542b76
add esp, 4
lea ecx, [ebp - 0x18c]
mov esi, eax
call fcn.00423d60
push 0x580a40
lea ecx, [ebp - 0x19c]
push ecx
lea edx, [ebp - 0x188]
push edx
lea eax, [ebp - 0x198]
call fcn.00421010
push 0x110
lea eax, [ebp - 0x17c]
push 0
push eax
mov byte [ebp - 4], 0x18
call fcn.00544310
add esp, 0xc
lea ecx, [ebp - 0x180]
push ecx
mov dword [ebp - 0x180], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp esi, dword [ebp - 0x17c]
jne 0x47fc91
lea esi, [ebp - 0x19c]
call fcn.00480330
test al, al
je 0x47fc63
call fcn.00480270
jmp 0x47fc8c
mov edx, dword [ebp - 0x19c]
push edx
call fcn.00542b76
add esp, 4
cmp eax, dword [ebp - 0x178]
jne 0x47fc8a
call fcn.00480270
test al, al
je 0x47fc8a
mov eax, 1
jmp 0x47fc8c
xor eax, eax
mov byte [0x5cfe30], al
lea ecx, [ebp - 0x19c]
call fcn.00423d60
lea ecx, [ebp - 0x188]
call fcn.00423d60
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fcc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 8
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x194]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fcf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x4c], esi
jb 0x47fd02
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0053c152
add esp, 4
xor edx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], dx
cmp dword [ebp - 0x14], esi
jb 0x47fd2b
mov eax, dword [ebp - 0x28]
push eax
call fcn.0053c152
add esp, 4
lea edi, [ebp - 0x2c]
call fcn.00477760
mov bl, 0x19
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [eax + 0x18], esi
jb 0x47fd47
mov eax, dword [eax + 4]
jmp 0x47fd4a
add eax, 4
mov ecx, dword [0x5cfe24]
push ecx
push eax
lea edx, [ebp - 0x18c]
push edx
call fcn.004d1fe0
add esp, 0xc
mov edi, 0x5cfe28
mov byte [ebp - 4], 0x1a
call fcn.00423c70
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fd94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], esi
jb 0x47fda9
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0053c152
add esp, 4
call fcn.004a7470
push ecx
mov ecx, esp
mov dword [ecx], 0
push ecx
mov ecx, esp
mov esi, eax
mov dword [ecx], 0
call fcn.004a8220
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x47fddd
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fe03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 8
jb 0x47fe15
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0053c152
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret