Function at 0x411170
Capabilities:
Identify system language via api
Read .ini file
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4ca2
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
lea edi, [esp + 0x28]
call fcn.00401060
xor ebx, ebx
push eax
mov ecx, 0x4e52c8
mov dword [esp + 0x1c4], ebx
call fcn.004064b0
mov dword [esp + 0x1c0], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov edx, str.default
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c0], 1
call fcn.0040a9f0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x64]
mov byte [esp + 0x1c8], 3
call fcn.00404cb0
mov esi, 8
mov byte [esp + 0x1c0], 1
cmp dword [esp + 0x58], esi
jb 0x411258
mov edx, dword [esp + 0x44]
push edx
call fcn.00480ff0
add esp, 4
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x411266
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
call fcn.004119f0
test eax, eax
jne 0x411290
cmp dword [esp + 0x74], esi
jb 0x411289
mov eax, dword [esp + 0x60]
push eax
call fcn.00480ff0
add esp, 4
xor eax, eax
jmp 0x4119c0
lea ecx, [esp + 0x30]
push 0x4e52c8
push ecx
mov edi, 0x4bee88
call fcn.00406590
add esp, 8
mov byte [esp + 0x1c0], 4
mov edx, dword [0x4e52d8]
mov eax, dword [edx - 8]
mov esi, dword [esp + 0x30]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x40
or eax, ecx
jge 0x4112dd
push 0x40
mov ecx, 0x4e52d8
call fcn.00403a90
mov edx, dword [0x4e52d8]
push esi
push 0x40
push edx
push 0x4bef68
push str.language
push 0x4beeb4
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, dword [0x4e52d8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0048bd24
mov edx, dword [0x4e52d8]
mov dword [edx - 0xc], eax
mov edx, dword [0x4e52d8]
xor ecx, ecx
mov word [edx + eax*2], cx
add esp, 8
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1c0], 5
push str.sites.dll
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
je 0x41134c
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x411364
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
lea eax, [esp + 0x18]
push eax
push 0x4bd4b8
lea ecx, [esp + 0x28]
push ecx
mov edx, 0x4bef34
mov dword [esp + 0x24], ebx
call fcn.00409780
cmp dword [esp + 0x14], ebx
je 0x4118be
lea edx, [esp + 0x5c]
push edx
mov ebx, str.CommonXMLCommonResource.xml
lea esi, [esp + 0x44]
call fcn.0040aed0
add esp, 4
mov byte [esp + 0x1c0], 6
cmp dword [esp + 0x58], 8
mov esi, dword [esp + 0x44]
jae 0x4113b9
lea esi, [esp + 0x44]
lea eax, [esp + 0x18]
push eax
call fcn.00403c50
lea ecx, [esp + 0x18]
push 0x4e52e8
push ecx
mov byte [esp + 0x1c8], 7
call fcn.00437810
add esp, 8
test al, al
mov byte [esp + 0x1c0], 6
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41140a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411465
mov eax, 0x4e52e8
call fcn.00411f90
lea ecx, [esp + 0x18]
push ecx
mov esi, 0x4bef68
call fcn.00403c50
lea ebx, [esp + 0x18]
mov edi, 0x4e52e8
mov byte [esp + 0x1c0], 8
call fcn.00410d10
mov byte [esp + 0x1c0], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411465
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x58], 8
mov edi, dword [esp + 0x44]
jae 0x411474
lea edi, [esp + 0x44]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
call fcn.00409230
mov byte [esp + 0x1c4], 9
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x41149b
push 0x80004003
call fcn.004a91a0
mov byte [esp + 0x1c4], 6
call fcn.004125d0
mov eax, dword [0x4e52d0]
test eax, eax
jne 0x4114bb
push 0x80004003
call fcn.004a91a0
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
push ecx
push 0
push eax
call edx
mov edi, dword [0x4e52d8]
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00409230
mov byte [esp + 0x1c4], 0xc
cmp dword [0x4e52d0], 0
jne 0x4114f8
push 0x80004003
call fcn.004a91a0
mov byte [esp + 0x1c4], 6
mov ecx, dword [0x4e52d0]
call fcn.00412370
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov edi, str.support
call fcn.00409230
mov byte [esp + 0x1c4], 0xd
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x411537
push 0x80004003
call fcn.004a91a0
lea edx, [esp + 0x40]
mov byte [esp + 0x1c4], 6
call fcn.0040d8f0
mov byte [esp + 0x1c0], 0xe
mov eax, dword [eax]
test eax, eax
je 0x41155a
mov eax, dword [eax]
jmp 0x41155c
xor eax, eax
lea ecx, [esp + 0x78]
call fcn.00404900
lea edi, [esp + 0x3c]
mov byte [esp + 0x1c0], 0x10
call fcn.004092d0
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x411588
lea eax, [esp + 0x7c]
push 0x4bef08
push eax
call fcn.0048b118
add esp, 8
test eax, eax
je 0x4115f0
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov edi, 0x4bef68
call fcn.00409230
mov byte [esp + 0x1c4], 0x11
cmp dword [0x4e52d0], 0
jne 0x4115c7
push 0x80004003
call fcn.004a91a0
mov byte [esp + 0x1c4], 0x10
mov ecx, dword [0x4e52d0]
call fcn.00412370
mov edx, 0x4bef68
mov edi, 0x4e52d8
mov byte [0x4e52e5], 1
call fcn.00403c10
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x419
cmp cx, ax
jne 0x411620
mov eax, 0x4e52d8
call fcn.00408350
test al, al
je 0x411620
call fcn.00411e30
mov byte [0x4e52e4], al
jmp 0x41186b
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov edi, str.autolinebreak
call fcn.00409230
mov byte [esp + 0x1c4], 0x12
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x41164c
push 0x80004003
call fcn.004a91a0
lea edx, [esp + 0x3c]
mov byte [esp + 0x1c4], 0x10
call fcn.0040d8f0
mov byte [esp + 0x1c0], 0x13
mov eax, dword [eax]
test eax, eax
je 0x41166f
mov eax, dword [eax]
jmp 0x411671
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
mov esi, eax
call fcn.00403c50
mov bl, 0x15
lea edi, [esp + 0x38]
mov byte [esp + 0x1c0], bl
call fcn.004092d0
mov ecx, dword [esp + 0x24]
cmp dword [ecx - 0xc], 0
jl 0x4116b8
push 0x4bef78
push ecx
call fcn.0048ad43
mov ecx, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x4116b8
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4116dd
push 0x4bef08
push ecx
call fcn.0048b118
add esp, 8
test eax, eax
jne 0x411843
call fcn.00411e30
mov byte [0x4e52e4], al
jmp 0x411843
lea ecx, [eax + 1]
lea eax, [esp + 0x34]
lea edx, [esp + 0x24]
call fcn.00412340
mov byte [esp + 0x1c0], 0x16
mov edi, dword [esp + 0x34]
cmp dword [edi - 0xc], 0
jl 0x411820
push 0x4bef74
push edi
call fcn.0048ad43
add esp, 8
test eax, eax
je 0x411820
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x411820
lea ecx, [eax + 1]
lea eax, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.00412340
push 0x4bef2c
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x1cc], 0x17
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
call fcn.004124b0
mov eax, dword [eax]
push eax
call fcn.0048cfc9
add esp, 4
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00403710
push 0x4bef2c
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
call fcn.004124b0
push 0x110
lea eax, [esp + 0x9c]
push 0
push eax
mov byte [esp + 0x1cc], 0x18
call fcn.0048f0a0
add esp, 0xc
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x98], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp esi, dword [esp + 0x98]
jne 0x41180e
lea esi, [esp + 0x2c]
call fcn.00411ef0
test al, al
je 0x4117e1
call fcn.00411e30
jmp 0x411809
mov edx, dword [esp + 0x2c]
push edx
call fcn.0048cfc9
add esp, 4
cmp eax, dword [esp + 0x9c]
jne 0x411807
call fcn.00411e30
test al, al
je 0x411807
mov eax, 1
jmp 0x411809
xor eax, eax
mov byte [0x4e52e4], al
lea ecx, [esp + 0x2c]
call fcn.00403710
lea ecx, [esp + 0x18]
call fcn.00403710
lea eax, [edi - 0x10]
mov byte [esp + 0x1c0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411843
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c0], 0x10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41186b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 8
cmp dword [esp + 0x90], esi
jb 0x411886
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00480ff0
add esp, 4
xor edx, edx
mov byte [esp + 0x1c0], 5
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], dx
cmp dword [esp + 0x58], esi
jb 0x4118be
mov eax, dword [esp + 0x44]
push eax
call fcn.00480ff0
add esp, 4
lea ebx, [esp + 0x40]
call fcn.0040abc0
mov bl, 0x19
mov edi, 8
mov byte [esp + 0x1c0], bl
cmp dword [eax + 0x18], edi
jb 0x4118df
mov edx, dword [eax + 4]
jmp 0x4118e2
lea edx, [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x4e52d8]
call fcn.0047f3b0
add esp, 4
push eax
mov ecx, 0x4e52dc
mov byte [esp + 0x1c4], 0x1a
call fcn.004064b0
mov byte [esp + 0x1c0], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41192f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c0], 5
cmp dword [esp + 0x58], edi
jb 0x41194a
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00480ff0
add esp, 4
call fcn.004303a0
push ecx
mov ecx, esp
mov dword [ecx], 0
push ecx
mov ecx, esp
mov esi, eax
mov dword [ecx], 0
call fcn.00430e80
mov byte [esp + 0x1c0], 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411980
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x1c0], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x74], edi
jb 0x4119bb
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00480ff0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret