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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571933
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x5c5678]
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.00401d30
xor ebx, ebx
mov edi, 0x5d1e5c
mov dword [ebp - 4], ebx
call fcn.00425450
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 0x480b71
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.00478b20
push 0xffffffffffffffff
push ebx
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00412610
mov edi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], edi
jb 0x480bbf
mov edx, dword [ebp - 0x28]
push edx
call fcn.0053d782
add esp, 4
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jae 0x480bca
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00481310
test eax, eax
jne 0x480bf2
cmp dword [ebp - 0x30], edi
jb 0x480beb
mov eax, dword [ebp - 0x44]
push eax
call fcn.0053d782
add esp, 4
xor eax, eax
jmp 0x4812ea
lea ecx, [ebp - 0x1a0]
push 0x5d1e5c
push ecx
mov esi, 0x58f5d0
call fcn.004236c0
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [0x5d1e6c]
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 0x480c42
mov ecx, 0x40
mov eax, 0x5d1e6c
call fcn.00425370
mov edx, dword [0x5d1e6c]
push esi
push 0x40
push edx
push 0x58c9b4
push 0x58c4b8
push 0x58c4cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x5d1e6c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0053e3ad
mov edx, dword [0x5d1e6c]
mov dword [edx - 0xc], eax
mov edx, dword [0x5d1e6c]
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 0x480cb3
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 0x480cd1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
lea eax, [ebp - 0x184]
push eax
push 0x58f470
lea ecx, [ebp - 0x190]
push ecx
mov edx, 0x5907bc
mov dword [ebp - 0x184], ebx
call fcn.00474cc0
cmp dword [ebp - 0x184], ebx
je 0x4811fb
push 0x590748
lea ecx, [ebp - 0x48]
lea esi, [ebp - 0x2c]
call fcn.00419f40
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jae 0x480d23
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x188]
push edx
call fcn.00425130
lea eax, [ebp - 0x188]
push 0x5d1e7c
push eax
mov byte [ebp - 4], 7
call fcn.004b0fa0
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 0x480d72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x480dcc
mov eax, 0x5d1e7c
call fcn.0040f990
lea ecx, [ebp - 0x188]
push ecx
mov ecx, 0x58c9b4
call fcn.00425130
lea edx, [ebp - 0x188]
push edx
mov edi, 0x5d1e7c
mov byte [ebp - 4], 8
call fcn.00423d80
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 0x480dcc
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 0x480ddc
lea edi, [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x18c], esp
push ecx
call fcn.00422950
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x184]
test ecx, ecx
jne 0x480e03
push 0x80004003
call fcn.0053d640
mov byte [ebp - 4], 6
call fcn.00481bf0
mov eax, dword [0x5d1e64]
test eax, eax
jne 0x480e1f
push 0x80004003
call fcn.0053d640
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 [0x5d1e6c]
push ecx
mov eax, esp
mov dword [ebp - 0x18c], esp
push eax
call fcn.00422950
mov byte [ebp - 4], 0xc
cmp dword [0x5d1e64], 0
jne 0x480e5c
push 0x80004003
call fcn.0053d640
mov byte [ebp - 4], 6
mov ecx, dword [0x5d1e64]
call fcn.00481b50
push ecx
mov ecx, esp
mov dword [ebp - 0x18c], esp
push ecx
mov edi, str.support
call fcn.00422950
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x184]
test ecx, ecx
jne 0x480e97
push 0x80004003
call fcn.0053d640
lea edx, [ebp - 0x1ac]
mov byte [ebp - 4], 6
call fcn.0047b780
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
test eax, eax
je 0x480eb4
mov eax, dword [eax]
jmp 0x480eb6
xor eax, eax
mov edx, eax
lea eax, [ebp - 0x64]
call fcn.0040f390
lea edi, [ebp - 0x1ac]
mov byte [ebp - 4], 0x10
call fcn.00422900
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], esi
jae 0x480eda
lea eax, [ebp - 0x60]
push 0x590794
push eax
call fcn.0053e4dd
add esp, 8
test eax, eax
je 0x480f3c
push ecx
mov edx, esp
mov dword [ebp - 0x18c], esp
push edx
mov edi, 0x58c9b4
call fcn.00422950
mov byte [ebp - 4], 0x11
cmp dword [0x5d1e64], 0
jne 0x480f17
push 0x80004003
call fcn.0053d640
mov byte [ebp - 4], 0x10
mov ecx, dword [0x5d1e64]
call fcn.00481b50
mov edx, 0x58c9b4
mov edi, 0x5d1e6c
mov byte [0x5d1e79], 1
call fcn.00425220
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x419
cmp cx, ax
jne 0x480f6c
mov eax, 0x5d1e6c
call fcn.0046d5e0
test al, al
je 0x480f6c
call fcn.00481740
mov byte [0x5d1e78], al
jmp 0x4811c1
push ecx
mov edx, esp
mov dword [ebp - 0x18c], esp
push edx
mov edi, str.autolinebreak
call fcn.00422950
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x184]
test ecx, ecx
jne 0x480f98
push 0x80004003
call fcn.0053d640
lea edx, [ebp - 0x1a8]
mov byte [ebp - 4], 0x10
call fcn.0047b780
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
test eax, eax
je 0x480fb5
mov eax, dword [eax]
jmp 0x480fb7
xor eax, eax
lea ecx, [ebp - 0x194]
push ecx
mov ecx, eax
call fcn.00425130
mov bl, 0x15
lea edi, [ebp - 0x1a8]
mov byte [ebp - 4], bl
call fcn.00422900
mov ecx, dword [ebp - 0x194]
cmp dword [ecx - 0xc], 0
jl 0x481002
push 0x58eb3c
push ecx
call fcn.0053f4fe
mov ecx, dword [ebp - 0x194]
add esp, 8
test eax, eax
je 0x481002
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x481027
push 0x590794
push ecx
call fcn.0053e4dd
add esp, 8
test eax, eax
jne 0x48119b
call fcn.00481740
mov byte [0x5d1e78], al
jmp 0x48119b
lea ecx, [eax + 1]
lea esi, [ebp - 0x1a4]
lea edx, [ebp - 0x194]
call fcn.00421cb0
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x1a4]
cmp dword [edi - 0xc], 0
jl 0x481177
push 0x58eb38
push edi
call fcn.0053f4fe
add esp, 8
test eax, eax
je 0x481177
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x481177
lea ecx, [eax + 1]
lea esi, [ebp - 0x188]
lea edx, [ebp - 0x1a4]
call fcn.00421cb0
push 0x582d58
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.004227e0
mov eax, dword [eax]
push eax
call fcn.005441a6
add esp, 4
lea ecx, [ebp - 0x18c]
mov esi, eax
call fcn.00425530
push 0x582d58
lea ecx, [ebp - 0x19c]
push ecx
lea edx, [ebp - 0x188]
push edx
lea eax, [ebp - 0x198]
call fcn.004227e0
push 0x110
lea eax, [ebp - 0x17c]
push 0
push eax
mov byte [ebp - 4], 0x18
call fcn.00545940
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 0x481161
lea esi, [ebp - 0x19c]
call fcn.00481800
test al, al
je 0x481133
call fcn.00481740
jmp 0x48115c
mov edx, dword [ebp - 0x19c]
push edx
call fcn.005441a6
add esp, 4
cmp eax, dword [ebp - 0x178]
jne 0x48115a
call fcn.00481740
test al, al
je 0x48115a
mov eax, 1
jmp 0x48115c
xor eax, eax
mov byte [0x5d1e78], al
lea ecx, [ebp - 0x19c]
call fcn.00425530
lea ecx, [ebp - 0x188]
call fcn.00425530
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 0x481196
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 0x4811c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x4c], esi
jb 0x4811d2
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0053d782
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 0x4811fb
mov eax, dword [ebp - 0x28]
push eax
call fcn.0053d782
add esp, 4
lea edi, [ebp - 0x2c]
call fcn.00478cf0
mov bl, 0x19
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [eax + 0x18], esi
jb 0x481217
mov eax, dword [eax + 4]
jmp 0x48121a
add eax, 4
mov ecx, dword [0x5d1e6c]
push ecx
push eax
lea edx, [ebp - 0x18c]
push edx
call fcn.004d3ae0
add esp, 0xc
mov edi, 0x5d1e70
mov byte [ebp - 4], 0x1a
call fcn.00425450
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 0x481264
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 0x481279
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0053d782
add esp, 4
call fcn.004a8490
push ecx
mov ecx, esp
mov dword [ecx], 0
push ecx
mov ecx, esp
mov esi, eax
mov dword [ecx], 0
call fcn.004a9240
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x4812ad
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 0x4812d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 8
jb 0x4812e5
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0053d782
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.0053d78d
mov esp, ebp
pop ebp
ret