Function at 0x405150
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4658c8
push 0x42fd80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0x68
mov eax, dword [0x46b0b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x64], esi
mov edx, dword [ebx + 8]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x78], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x60], ecx
mov edi, dword [ebx + 0x14]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x5c], 0x4752434d
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
test edi, edi
jne 0x4051f2
lea eax, [edi + 1]
jmp 0x4054cf
mov eax, dword [esi]
test eax, eax
jne 0x4054cf
mov ecx, edx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405201
sub ecx, edx
sar ecx, 1
lea eax, [ecx*4 + 3]
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0
call fcn.0042dbb0
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xfffffffe
mov edx, dword [ebp - 0x68]
jmp 0x405276
test eax, eax
jne 0x405284
mov eax, 0x3e9
jmp 0x4054cf
mov byte [eax], 0x5f
mov dword [ebp - 0x68], 0
lea ecx, [eax + 1]
mov dword [ebp - 0x64], ecx
lea eax, [ebp - 0x68]
push eax
push 0
mov eax, dword [ebp - 0x80]
dec eax
push eax
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x405433
cmp dword [ebp - 0x68], 0
je 0x4052c5
mov eax, 0x574
jmp 0x4054cf
push dword [esi + 8]
push 0x24
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x70]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x405301
mov dword [ebp - 0x4c], eax
mov ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x60]
test edx, edx
jne 0x4052fa
mov eax, 0x1400
mov dword [ebp - 0x54], eax
jmp 0x405307
mov eax, dword [edi]
mov dword [ebp - 0x54], eax
jmp 0x405307
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x60]
je 0x405318
mov edx, dword [ebp - 0x6c]
mov dword [edx], ecx
mov edx, dword [ebp - 0x60]
test edx, edx
jne 0x40532a
cmp ecx, 1
jne 0x405323
add eax, eax
mov dword [edi], eax
jmp 0x4054cd
cmp dword [edi], eax
mov edx, dword [ebp - 0x60]
jae 0x40533b
mov eax, 8
jmp 0x4054cf
cmp dword [ebp - 0x4c], 0
je 0x40540d
cmp ecx, 1
jne 0x4053dd
push eax
mov ecx, esi
call fcn.00405760
test al, al
je 0x405331
push dword [esi + 8]
push dword [ebp - 0x54]
push dword [esi + 0xc]
push dword [ebp - 0x64]
push dword [esi + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
call eax
test eax, eax
je 0x405433
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push ecx
push dword [ebp - 0x54]
push eax
call fcn.00405010
test eax, eax
jne 0x4054cf
mov eax, dword [edi]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x405321
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [edi], eax
mov eax, 0xea
jmp 0x4054cf
mov dword [edi], eax
push dword [esi + 8]
push eax
push edx
push dword [ebp - 0x64]
push dword [esi + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
call eax
test eax, eax
je 0x405433
push edi
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push ecx
push dword [ebp - 0x54]
push ecx
call fcn.00405010
jmp 0x4054cf
sub ecx, 1
je 0x40546c
sub ecx, 3
mov dword [edi], eax
push dword [esi + 8]
je 0x40543e
push eax
push edx
push dword [ebp - 0x64]
push dword [esi + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
call eax
test eax, eax
jne 0x4054cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4054cf
push 0x14
lea eax, [ebp - 0x38]
push eax
push 0x462b84
push dword [ebp - 0x64]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405433
lea eax, [ebp - 0x38]
push eax
call fcn.00436346
add esp, 4
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x4054cd
mov eax, dword [edi]
cmp eax, 2
jb 0x405331
shr eax, 1
mov dword [ebp - 0x54], eax
push eax
mov ecx, esi
call fcn.00405760
test al, al
je 0x40527a
push dword [esi + 8]
push dword [ebp - 0x54]
push dword [esi + 0xc]
push 0x462b84
push dword [ebp - 0x64]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405433
mov eax, dword [edi]
shr eax, 1
push eax
mov ecx, dword [ebp - 0x60]
push ecx
push 0xffffffffffffffff
push dword [esi + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x405433
xor eax, eax
lea esp, [ebp - 0x90]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0042d012
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18