Function at 0x408d70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c42e
push eax
mov eax, 0x221c
mov dword fs:[0], esp
call fcn.004126b0
mov eax, dword [esp + 0x2234]
mov edx, dword [esp + 0x2230]
push esi
push edi
push eax
lea ecx, [esp + 0x228]
push 0x2000
xor edi, edi
push ecx
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov al, byte [esp + 0x224]
lea esi, [esp + 0x224]
test al, al
mov dword [esp + 0x14], esi
je 0x40909d
push ebp
mov ebp, dword [esp + 0x2238]
push ebx
mov dword [esp + 0x14], edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x12c]
push eax
push ecx
push esi
call fcn.00408830
add esp, 0xc
test al, al
je 0x40907c
mov al, byte [esp + 0x2c]
test al, al
je 0x40907c
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x34]
push str._f_f
push ecx
call fcn.00411820
add esp, 0x10
cmp eax, 2
jl 0x40907c
fld dword [esp + 0x28]
fmul dword [section..rdata]
call fcn.00412c20
fld dword [esp + 0x24]
fmul dword [section..rdata]
mov esi, eax
call fcn.00412c20
lea edx, [esp + 0x12c]
mov ecx, ebp
push edx
mov edi, eax
call fcn.0040ef90
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x408ebc
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov ecx, dword [ebp + 4]
xor eax, eax
test ecx, ecx
jle 0x408e88
mov edx, dword [ebp]
cmp ebx, dword [edx]
je 0x408e88
inc eax
add edx, 4
cmp eax, ecx
jl 0x408e7c
sub ecx, eax
dec ecx
je 0x408e99
mov edx, dword [ebp]
lea esi, [edx + eax*4 + 4]
lea edi, [edx + eax*4]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
dec edx
cmp eax, ecx
mov dword [ebp + 4], edx
jge 0x408efd
mov eax, dword [esp + 0x14]
dec ecx
sub eax, 0x3fffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x408efd
push 0x10
call fcn.004126a0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x2234], 0
je 0x408eec
push edi
lea ecx, [esp + 0x130]
push esi
push ecx
mov ecx, eax
call fcn.0040eec0
jmp 0x408eee
xor eax, eax
mov dword [esp + 0x2234], 0xffffffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edi, dword [ebp + 4]
mov esi, eax
lea edx, [esi*4]
inc esi
mov dword [esp + 0x20], edx
mov edx, ebx
add edx, 0x3fffffff
cmp eax, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jl 0x408fb5
xor edi, edi
cmp esi, edi
jne 0x408f57
cmp dword [ebp + 8], edi
je 0x40905e
mov eax, dword [ebp]
push eax
call fcn.00410ad0
add esp, 4
mov dword [ebp], edi
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
jmp 0x40905e
mov eax, dword [ebp]
cmp eax, edi
jne 0x408f76
push 4
push esi
call fcn.00411480
add esp, 8
cmp eax, edi
mov dword [ebp], eax
je 0x40905e
jmp 0x408f97
cmp esi, dword [ebp + 8]
jle 0x408f9a
lea ecx, [esi*4]
push ecx
push eax
call fcn.00412a20
add esp, 8
cmp eax, edi
je 0x40905e
mov dword [ebp], eax
mov dword [ebp + 8], esi
mov eax, dword [ebp + 4]
cmp eax, esi
jge 0x408fad
mov edx, dword [ebp]
inc eax
cmp eax, esi
mov dword [edx + eax*4 - 4], edi
jl 0x408fa1
mov dword [ebp + 4], esi
jmp 0x40905e
lea esi, [edi + 1]
test esi, esi
jne 0x408fdc
mov eax, dword [ebp + 8]
test eax, eax
je 0x409031
mov eax, dword [ebp]
push eax
call fcn.00410ad0
add esp, 4
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
jmp 0x409031
mov eax, dword [ebp]
test eax, eax
jne 0x408ff7
push 4
push esi
call fcn.00411480
add esp, 8
mov dword [ebp], eax
test eax, eax
je 0x409031
jmp 0x409014
cmp esi, dword [ebp + 8]
jle 0x409017
lea ecx, [esi*4]
push ecx
push eax
call fcn.00412a20
add esp, 8
test eax, eax
je 0x409031
mov dword [ebp], eax
mov dword [ebp + 8], esi
mov eax, dword [ebp + 4]
cmp eax, esi
jge 0x40902e
mov edx, dword [ebp]
inc eax
cmp eax, esi
mov dword [edx + eax*4 - 4], 0
jl 0x40901e
mov dword [ebp + 4], esi
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
add edi, ebx
shl edi, 2
lea edx, [ecx + eax]
push edi
lea eax, [ecx + eax + 4]
push edx
push eax
call fcn.004126e0
mov ecx, dword [ebp]
mov eax, dword [esp + 0x2c]
add esp, 0xc
add ecx, eax
mov dword [ecx], 0
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov edx, dword [ebp]
mov esi, dword [esp + 0x18]
mov dword [edx + eax], esi
add eax, 4
mov edx, ecx
dec ecx
test edx, edx
jne 0x409064
mov esi, dword [esp + 0x1c]
mov al, byte [esi]
inc esi
test al, al
mov dword [esp + 0x1c], esi
je 0x409092
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x409087
mov dword [esp + 0x1c], esi
cmp byte [esi], 0
jne 0x408de1
pop ebx
pop ebp
mov ecx, dword [esp + 0x2224]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x2228
ret