Function at 0x407c50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x221c
call fcn.0040db60
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.00406ff0
cmp eax, esi
je 0x407cba
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 0x407ca0
push eax
call fcn.0040e03e
add esp, 4
xor esi, esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
push ecx
mov ecx, edi
call fcn.004072b0
cmp dword [ebx], esi
jne 0x407cd4
xor eax, eax
jmp 0x407cd7
lea eax, [ebx + 4]
cmp eax, esi
je 0x407e99
jmp 0x407ce9
mov eax, dword [ebp - 0x2208]
xor esi, esi
cmp eax, esi
je 0x407d2d
sub eax, ebx
sub eax, 3
lea ecx, [eax - 1]
cmp ecx, 0x1f3
ja 0x407d2d
mov edx, dword [ebx]
cmp eax, edx
jae 0x407d0f
lea eax, [ebx + eax + 4]
mov dword [ebp - 0x2208], eax
jmp 0x407d15
mov dword [ebp - 0x2208], esi
cmp ecx, edx
jae 0x407d33
cmp ecx, 0xffffffff
je 0x407d33
mov ecx, dword [ebx + ecx*4 + 0x1f8]
mov dword [ebp - 0x2210], ecx
jmp 0x407d39
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 0x407de6
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407d55
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.0040e0b7
mov esi, eax
add esp, 4
test esi, esi
je 0x407dda
lea eax, [edi + edi + 4]
push eax
push 0
push esi
call fcn.0040e0d0
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 0x407dc2
push esi
call fcn.0040e03e
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.0040e83d
add esp, 8
test eax, eax
jne 0x407eb2
lea eax, [ebp - 0x1204]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.00407bc0
test eax, eax
je 0x407e8c
lea edx, [ebp - 0x2204]
push edx
push 0x400
lea eax, [ebp - 0x1a04]
push eax
push 0x41de5c
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 0x407e8c
lea eax, [ebp - 0x1a04]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e60
sub eax, edx
sar eax, 1
je 0x407e8c
lea eax, [ebp - 0x1a04]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.00407070
mov dword [ebp - 0x220c], eax
cmp dword [ebp - 0x2208], 0
jne 0x407ce1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d7c0
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.00406ff0
test eax, eax
je 0x407e1d
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 0x407ed0
push eax
call fcn.0040e03e
add esp, 4
jmp 0x407e1d