Function at 0x401a50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e234
mov eax, dword fs:[0]
push eax
sub esp, 0xbfc
mov eax, dword [section..data]
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
mov dword [ebp - 0xc00], ecx
mov dword [ebp - 0xc08], 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xff
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
mov byte [ebp - 0x12], 0
push 0x5c
push eax
call fcn.00403240
add esp, 8
xor ecx, ecx
mov byte [eax], 0
lea ebx, [ebx]
mov al, byte [ebp + ecx - 0x110]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x41d], al
test al, al
jne 0x401ad0
call fcn.00401850
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401b01
push 0x80004005
call fcn.00401590
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xbf0], eax
lea edx, [ebp - 0x41c]
mov byte [ebp - 4], 1
xor ecx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x401b20
sub edx, esi
je 0x401b45
jmp 0x401b30
movzx eax, byte [ebp + ecx - 0x41c]
mov word [ebp + ecx*2 - 0x318], ax
inc ecx
cmp ecx, edx
jb 0x401b30
add edx, edx
cmp edx, 0x208
jae 0x401f11
xor eax, eax
lea ecx, [ebp - 0x318]
mov word [ebp + edx - 0x318], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b66
sub ecx, edx
lea eax, [ebp - 0x318]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xbf0]
call fcn.00402440
mov eax, dword [0x417138]
cmp dword [eax - 0xc], 0
jne 0x401c3b
mov edi, dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
lea eax, [ebp - 0xbf4]
push eax
push 0
lea eax, [ebp - 0xbf8]
mov dword [ebp - 0xbf8], 1
push eax
push 8
mov dword [ebp - 0xbf4], 0
call edi
test eax, eax
je 0x401c3b
mov eax, dword [ebp - 0xbf4]
lea ebx, [eax + eax]
push ebx
call fcn.00402a17
mov esi, eax
add esp, 4
test esi, esi
je 0x401c3b
push ebx
push 0
push esi
call fcn.00403530
add esp, 0xc
mov dword [ebp - 0xbf8], 1
lea eax, [ebp - 0xbf4]
push eax
push esi
lea eax, [ebp - 0xbf8]
push eax
push 8
call edi
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401c10
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x417138
call fcn.00402440
push esi
call fcn.00402aa9
add esp, 4
mov dword [ebp - 4], 1
push 6
push str.Lang_
lea ecx, [ebp - 0xbf0]
call fcn.00402640
mov eax, dword [0x417138]
lea ecx, [ebp - 0xbf0]
push dword [eax - 0xc]
push eax
call fcn.00402640
push 4
push str..lng
lea ecx, [ebp - 0xbf0]
call fcn.00402640
push 0x413664
lea ecx, [ebp - 0xbfc]
call fcn.004021e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbfc]
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.00402640
push 1
push 0x413664
lea ecx, [ebp - 0xbfc]
call fcn.00402640
mov edi, dword [ebp - 0xbf0]
push edi
push 0
push 0x413668
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or ebx, 0xffffffff
test eax, eax
jne 0x401e2c
push 0x417138
lea ecx, [ebp - 0xbf4]
call fcn.00402330
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0xbf4]
cmp dword [esi - 0xc], 0
jle 0x401e0f
push 0x2d
push esi
call fcn.004030de
add esp, 8
test eax, eax
je 0x401e0f
sub eax, esi
sar eax, 1
test eax, eax
jle 0x401e0f
push eax
lea eax, [ebp - 0xc04]
push eax
lea ecx, [ebp - 0xbf4]
call fcn.004022c0
mov byte [ebp - 4], 6
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x401d88
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x401d73
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x401d73
call fcn.00402500
mov dword [ebp - 0xbf8], eax
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x401d62
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xbf8]
add esi, 0x10
mov dword [ebp - 0xbf4], esi
jmp 0x401d88
push dword [edx - 0xc]
lea ecx, [ebp - 0xbf4]
push edx
call fcn.00402440
mov esi, dword [ebp - 0xbf4]
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp - 0xc04]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401dab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x318]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401db4
sub ecx, edx
lea eax, [ebp - 0x318]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xbf0]
call fcn.00402440
push 6
push str.Lang_
lea ecx, [ebp - 0xbf0]
call fcn.00402640
push dword [esi - 0xc]
lea ecx, [ebp - 0xbf0]
push esi
call fcn.00402640
push 4
push str..lng
lea ecx, [ebp - 0xbf0]
call fcn.00402640
mov edi, dword [ebp - 0xbf0]
add esi, 0xfffffff0
mov byte [ebp - 4], 4
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401e2c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push 0x3e8
lea eax, [ebp - 0xbec]
push eax
push dword [ebp + 8]
push dword [ebp - 0xbfc]
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
lea ecx, [ebp - 0xbec]
mov word [ebp - 0x41e], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401e60
sub ecx, edx
lea eax, [ebp - 0xbec]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00402440
mov ecx, dword [ebp - 0xc00]
lea eax, [ebp + 8]
push eax
call fcn.00402330
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0xbfc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401eb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401ece
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x401eef
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc00]
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.004029c5
mov esp, ebp
pop ebp
ret
call fcn.00403002
int3