Function at 0x407c40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x221c
call fcn.0040dbc0
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
push eax
mov dword [ebp - 0x2218], edi
mov dword [ebp - 0x221c], ebx
mov dword [ebp - 0x220c], esi
call fcn.00406fe0
cmp eax, esi
je 0x407caa
lea esi, [ebp - 0x2204]
mov ecx, eax
sub esi, eax
lea ebx, [ebx]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x407c90
push eax
call fcn.0040e09e
add esp, 4
xor esi, esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
push ecx
mov ecx, edi
call fcn.004072a0
cmp dword [ebx], esi
jne 0x407cc4
xor eax, eax
jmp 0x407cc7
lea eax, [ebx + 4]
cmp eax, esi
je 0x407e89
jmp 0x407cd9
mov eax, dword [ebp - 0x2208]
xor esi, esi
cmp eax, esi
je 0x407d1d
sub eax, ebx
sub eax, 3
lea ecx, [eax - 1]
cmp ecx, 0x1f3
ja 0x407d1d
mov edx, dword [ebx]
cmp eax, edx
jae 0x407cff
lea eax, [ebx + eax + 4]
mov dword [ebp - 0x2208], eax
jmp 0x407d05
mov dword [ebp - 0x2208], esi
cmp ecx, edx
jae 0x407d23
cmp ecx, 0xffffffff
je 0x407d23
mov ecx, dword [ebx + ecx*4 + 0x1f8]
mov dword [ebp - 0x2210], ecx
jmp 0x407d29
mov dword [ebp - 0x2208], esi
mov dword [ebp - 0x2210], esi
mov edx, dword [ebp - 0x2210]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2214], ecx
cmp ecx, esi
je 0x407dd6
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407d45
push 0
push 0
sub eax, esi
mov ebx, eax
push ebx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e117
mov esi, eax
add esp, 4
test esi, esi
je 0x407dca
lea eax, [edi + edi + 4]
push eax
push 0
push esi
call fcn.0040e130
mov ecx, dword [ebp - 0x2214]
add esp, 0xc
push ebx
push esi
push ebx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0xa04]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407db2
push esi
call fcn.0040e09e
add esp, 4
mov ebx, dword [ebp - 0x221c]
mov edi, dword [ebp - 0x2218]
mov esi, dword [ebp - 0x2210]
mov edx, dword [esi]
push str.0x00000000
push edx
call fcn.0040e89d
add esp, 8
test eax, eax
jne 0x407ea2
lea eax, [ebp - 0x1204]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.00407bb0
test eax, eax
je 0x407e7c
lea edx, [ebp - 0x2204]
push edx
push 0x400
lea eax, [ebp - 0x1a04]
push eax
push 0x41de6c
lea ecx, [ebp - 0x1204]
push ecx
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x407e7c
lea eax, [ebp - 0x1a04]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e50
sub eax, edx
sar eax, 1
je 0x407e7c
lea eax, [ebp - 0x1a04]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.00407060
mov dword [ebp - 0x220c], eax
cmp dword [ebp - 0x2208], 0
jne 0x407cd1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d820
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.00406fe0
test eax, eax
je 0x407e0d
lea esi, [ebp - 0x1204]
mov ecx, eax
sub esi, eax
mov edi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x407ec0
push eax
call fcn.0040e09e
add esp, 4
jmp 0x407e0d