Function at 0x4072b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x221c
call fcn.0040ab40
mov eax, dword [0x41d84c]
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.004066b0
cmp eax, esi
je 0x40731a
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 0x407300
push eax
call fcn.0040ab6b
add esp, 4
xor esi, esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
push ecx
mov ecx, edi
call fcn.00406970
cmp dword [ebx], esi
jne 0x407334
xor eax, eax
jmp 0x407337
lea eax, [ebx + 4]
cmp eax, esi
je 0x4074f9
jmp 0x407349
mov eax, dword [ebp - 0x2208]
xor esi, esi
cmp eax, esi
je 0x40738d
sub eax, ebx
sub eax, 3
lea ecx, [eax - 1]
cmp ecx, 0x1f3
ja 0x40738d
mov edx, dword [ebx]
cmp eax, edx
jae 0x40736f
lea eax, [ebx + eax + 4]
mov dword [ebp - 0x2208], eax
jmp 0x407375
mov dword [ebp - 0x2208], esi
cmp ecx, edx
jae 0x407393
cmp ecx, 0xffffffff
je 0x407393
mov ecx, dword [ebx + ecx*4 + 0x1f8]
mov dword [ebp - 0x2210], ecx
jmp 0x407399
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 0x407446
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4073b5
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.0040afc8
mov esi, eax
add esp, 4
test esi, esi
je 0x40743a
lea eax, [edi + edi + 4]
push eax
push 0
push esi
call fcn.0040afe0
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 0x407422
push esi
call fcn.0040ab6b
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.0040b74d
add esp, 8
test eax, eax
jne 0x407512
lea eax, [ebp - 0x1204]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.00407220
test eax, eax
je 0x4074ec
lea edx, [ebp - 0x2204]
push edx
push 0x400
lea eax, [ebp - 0x1a04]
push eax
push 0x417e0c
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 0x4074ec
lea eax, [ebp - 0x1a04]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4074c0
sub eax, edx
sar eax, 1
je 0x4074ec
lea eax, [ebp - 0x1a04]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.00406730
mov dword [ebp - 0x220c], eax
cmp dword [ebp - 0x2208], 0
jne 0x407341
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7a3
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.004066b0
test eax, eax
je 0x40747d
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 0x407530
push eax
call fcn.0040ab6b
add esp, 4
jmp 0x40747d