Function at 0x40ca50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a63c7
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x632a40]
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 ebx, ecx
cmp dword [ebx + 0x88], 8
lea edx, [ebx + 0x74]
jb 0x40ca8e
mov edx, dword [edx]
cmp word [edx], 0
jne 0x40ca98
xor ecx, ecx
jmp 0x40caaf
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40caa0
sub ecx, esi
sar ecx, 1
push ecx
lea edi, [ebx + 0xd4]
push edx
mov ecx, edi
call fcn.00404db0
push 0xb
push str.GoodZip.ini
mov ecx, edi
call fcn.0040d860
sub esp, 0xc
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0040cfd0
mov ecx, eax
lea esi, [ebx + 0xec]
mov dword [ebp - 0x24c], ecx
cmp esi, ecx
je 0x40cb2f
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40cb08
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00405130
mov ecx, dword [ebp - 0x24c]
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40cb20
mov eax, dword [esi]
jmp 0x40cb22
mov eax, esi
xor edx, edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.00404fd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40cb54
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00405130
push str.gdysgf
mov ecx, esi
call fcn.0040dac0
test eax, eax
jne 0x40cbf0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057ff70
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40cb85
mov edi, dword [edi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.gdysgf
push 0x623c30
push str.GDsftinf
call edi
cmp word [ebp - 0x218], 0
jne 0x40cbc6
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, esi
call fcn.00404db0
jmp 0x40cbf6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cbd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404db0
jmp 0x40cbf6
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.gdysgf
mov ecx, esi
call fcn.0040dac0
test eax, eax
jne 0x40ccf3
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0057ff70
add esp, 0xc
mov dword [ebp - 0x21c], 7
xor ecx, ecx
mov dword [ebp - 0x220], 0
lea eax, [ebx + 0x5c]
mov word [ebp - 0x230], cx
push 0xffffffffffffffff
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404eb0
push 0xb
push str.GoodZip.ini
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.0040d860
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.gdysgf
push 0x623c30
push str.GDsftinf
call edi
cmp word [ebp - 0x218], 0
jne 0x40cca7
xor ecx, ecx
jmp 0x40ccbf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ccb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00404db0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40ccf3
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00405130
push str.gdysgf
mov ecx, esi
call fcn.0040dac0
test eax, eax
jne 0x40cd70
sub esp, 0xc
lea eax, [ebp - 0x248]
push eax
call fcn.0040d6f0
mov edi, eax
cmp esi, edi
je 0x40cd52
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40cd2b
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00405130
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40cd43
mov eax, dword [esi]
jmp 0x40cd45
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00404fd0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40cd70
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00405130
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.00579ec9
mov esp, ebp
pop ebp
ret