Function at 0x409ff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c329
mov eax, dword fs:[0]
push eax
mov eax, 0x10c8
call fcn.0040c500
mov eax, dword [0x431f04]
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 edi, ecx
mov dword [ebp - 0x10c4], edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10bc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c8], eax
lea eax, [ebp - 0x10a0]
push esi
push eax
mov dword [ebp - 0x10d4], ebx
call fcn.00407bf0
lea eax, [ebp - 0x10a0]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.004096b0
lea eax, [ebp - 0x1058]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.00407b00
push 0x1000
lea eax, [ebp - 0x1010]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0040e030
add esp, 0x24
cmp dword [edi + 0x14], 0
je 0x40a355
mov eax, dword fs:[0x2c]
mov ecx, dword [0x432d64]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x432a14]
cmp eax, dword [ecx + 4]
jg 0x40a4e2
cmp dword [ebx + 0x10], 0
je 0x40a17c
push ebx
lea eax, [ebp - 0x107c]
mov ecx, 0x432a0c
push eax
call fcn.00406ab0
mov edi, dword [ebp - 0x1074]
cmp byte [edi + 0xd], 0
jne 0x40a17c
lea eax, [edi + 0x10]
push eax
push ebx
call fcn.00404ba0
add esp, 8
test al, al
jne 0x40a17c
cmp edi, dword [0x432a0c]
je 0x40a17c
mov eax, dword [ebp - 0x10c4]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40a120
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x40a128
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x40a130
mov ebx, dword [ebx]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x41d498
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x1010]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a153
sub edx, ecx
lea eax, [ebp - 0x1010]
mov ecx, dword [ebp - 0x10bc]
sar edx, 1
push edx
push eax
call fcn.00402660
xor bl, bl
jmp 0x40a3da
push esi
lea ecx, [ebp - 0x1040]
call fcn.00401440
cmp dword [ebp - 0x102c], 8
lea eax, [ebp - 0x1040]
mov edx, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1040]
cmovae eax, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x10cc], eax
lea edi, [ebp - 0x1040]
mov eax, dword [ebp - 0x1030]
cmovae ecx, edx
cmovae edi, edx
lea eax, [ecx + eax*2]
cmp edi, eax
je 0x40a1ee
mov esi, dword [ebp - 0x10cc]
mov ebx, eax
sub esi, edi
movzx eax, word [edi]
push eax
call fcn.00410a2f
mov word [esi + edi], ax
add esp, 4
add edi, 2
cmp edi, ebx
jne 0x40a1d1
mov ebx, dword [ebp - 0x10d4]
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x10b8]
push eax
call fcn.00407bf0
push eax
lea eax, [ebp - 0x1088]
mov byte [ebp - 4], 5
push eax
call fcn.004096b0
push eax
lea eax, [ebp - 0x1070]
mov byte [ebp - 4], 6
push eax
call fcn.00407b00
add esp, 0x18
lea ecx, [ebp - 0x1088]
call fcn.00406f20
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 9
call fcn.00406f20
mov edi, dword [ebp - 0x10c4]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
mov edx, esi
jb 0x40a253
mov edx, dword [esi]
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
mov ecx, ebx
cmovae eax, dword [ebp - 0x1070]
cmp dword [ebx + 0x14], 8
jb 0x40a271
mov ecx, dword [ebx]
push edx
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x41d498
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a294
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10bc]
push eax
call fcn.00402660
mov eax, dword [ebp - 0x10bc]
cmp dword [eax + 0x10], 0
jne 0x40a332
cmp dword [esi + 0x14], 8
jb 0x40a2ca
mov esi, dword [esi]
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
mov ecx, ebx
cmovae eax, dword [ebp - 0x1028]
cmp dword [ebx + 0x14], 8
jb 0x40a2e8
mov ecx, dword [ebx]
push esi
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x41d498
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
jmp 0x40a310
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a310
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10bc]
push eax
call fcn.00402660
mov eax, dword [ebp - 0x10c8]
lea ecx, [ebp - 0x1070]
mov byte [eax], 1
call fcn.004019c0
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 2
call fcn.004019c0
mov esi, dword [ebp - 0x10bc]
cmp dword [esi + 0x10], 0
jne 0x40a3d8
cmp dword [edi + 0x2c], 0
je 0x40a3d8
cmp dword [edi + 0x30], 8
lea eax, [edi + 0x1c]
jb 0x40a372
mov eax, dword [eax]
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
cmp dword [ebx + 0x14], 8
jb 0x40a38e
mov ebx, dword [ebx]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x41d498
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a3b1
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402660
mov eax, dword [ebp - 0x10c8]
mov byte [eax], 0
mov bl, 1
mov edx, dword [ebp - 0x1014]
cmp edx, 8
jb 0x40a41a
mov ecx, dword [ebp - 0x1028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a410
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a530
push edx
push ecx
call fcn.0040c046
add esp, 8
mov edx, dword [ebp - 0x1044]
xor eax, eax
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 7
mov word [ebp - 0x1028], ax
cmp edx, 0x10
jb 0x40a471
mov ecx, dword [ebp - 0x1058]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a467
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a530
push edx
push ecx
call fcn.0040c046
add esp, 8
mov edx, dword [ebp - 0x108c]
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0xf
mov byte [ebp - 0x1058], 0
cmp edx, 0x10
jb 0x40a4c2
mov ecx, dword [ebp - 0x10a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a4b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a530
push edx
push ecx
call fcn.0040c046
add esp, 8
mov al, bl
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.0040c2b3
mov esp, ebp
pop ebp
ret 0x10
push 0x432a14
call fcn.0040c41b
add esp, 4
cmp dword [0x432a14], 0xffffffff
jne 0x40a0ca
push 0x432a0c
lea ecx, [ebp - 0x10bd]
mov byte [ebp - 4], 3
call fcn.00407880
push 0x41c6c0
call fcn.0040c29e
push 0x432a14
mov byte [ebp - 4], 2
call fcn.0040c3d1
add esp, 8
jmp 0x40a0ca
call fcn.0040fa8a
int3