Function at 0x40aaf0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6307
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8c8
mov eax, dword [0x632a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.0057ff70
add esp, 0xc
mov dword [ebp - 0x89c], 7
xor eax, eax
mov dword [ebp - 0x8a0], 0
lea ecx, [ebp - 0x8b0]
mov word [ebp - 0x8b0], ax
push eax
push 0x623880
call fcn.00404db0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x623880
lea ecx, [ebp - 0x898]
mov dword [ebp - 0x884], 7
mov dword [ebp - 0x888], 0
mov word [ebp - 0x898], ax
call fcn.00404db0
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x623880
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x86c], 7
mov dword [ebp - 0x870], 0
mov word [ebp - 0x880], ax
call fcn.00404db0
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x623880
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x854], 7
mov dword [ebp - 0x858], 0
mov word [ebp - 0x868], ax
call fcn.00404db0
push ecx
push 0x2b
lea edx, [ebp - 0x428]
mov byte [ebp - 4], 3
call fcn.0041c480
lea edi, [ebp - 0x428]
add esp, 8
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40ac44
mov eax, dword [0x623ae4]
lea edx, [ebp - 0x428]
mov dword [edi], eax
add edx, 0xfffffffe
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x40ac60
mov ecx, dword [0x623ac8]
lea edi, [ebp - 0x428]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x623acc]
mov dword [edx + 4], ecx
mov ecx, dword [0x623ad0]
mov dword [edx + 8], ecx
mov ecx, dword [0x623ad4]
mov dword [edx + 0xc], ecx
nop dword [eax + eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x40aca0
lea ecx, [ebp - 0x428]
mov dword [edi], eax
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40acc0
mov eax, dword [0x623ac8]
mov dword [ecx], eax
mov eax, dword [0x623acc]
mov dword [ecx + 4], eax
mov eax, dword [0x623ad0]
mov dword [ecx + 8], eax
mov eax, dword [0x623ad4]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x428]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40acf4
mov eax, dword [0x623ae8]
mov dword [ecx], eax
mov eax, dword [0x623aec]
mov dword [ecx + 4], eax
mov ax, word [0x623af0]
mov word [ecx + 8], ax
lea eax, [ebp - 0x428]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x623880
push str.CfgPath
push str.GDGlobalCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad50
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40ae3d
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x40ae3d
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
push 0
push eax
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x40ae3d
cmp word [ebp - 0x220], 0
jne 0x40adca
xor ecx, ecx
jmp 0x40ade2
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40add3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00404db0
cmp word [ebp - 0x220], 0
jne 0x40ae03
xor ecx, ecx
jmp 0x40ae1f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
call fcn.00404db0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40b29b
push 0x208
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.0057ff70
lea ecx, [esi + 0x5c]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x40ae5e
mov ecx, dword [ecx]
lea edx, [ebp - 0x838]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40ae64
push 0x208
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x838]
push str.GoodZip.ini
push eax
lea eax, [ebp - 0x630]
push str._s_s
push eax
call fcn.0040a360
add esp, 0x10
lea eax, [ebp - 0x630]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x623880
push str.CfgPath
push str.GDsftinf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aee0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40afcd
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x40afcd
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
push 0
push eax
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x40afcd
cmp word [ebp - 0x220], 0
jne 0x40af54
xor ecx, ecx
jmp 0x40af6f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x898]
call fcn.00404db0
cmp word [ebp - 0x220], 0
jne 0x40af90
xor ecx, ecx
jmp 0x40afaf
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40afa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
call fcn.00404db0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40b29b
cmp dword [esi + 0x88], 8
lea eax, [esi + 0x74]
jb 0x40afdb
mov eax, dword [eax]
push str.GoodZip.ini
push eax
lea eax, [ebp - 0x630]
push str._s_s
push eax
call fcn.0040a360
add esp, 0x10
lea eax, [ebp - 0x630]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x623880
push str.CfgPath
push str.GDsftinf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b026
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40b10d
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x40b10d
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
push 0
push eax
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x40b10d
cmp word [ebp - 0x220], 0
jne 0x40b09a
xor ecx, ecx
jmp 0x40b0b2
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0a3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x880]
call fcn.00404db0
cmp word [ebp - 0x220], 0
jne 0x40b0d3
xor ecx, ecx
jmp 0x40b0ef
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
call fcn.00404db0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40b29b
push 0x623880
push str.CfgPath
push str.GDsftinf
lea eax, [ebp - 0x850]
push eax
call fcn.0040d4a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x850]
mov edi, dword [ebp - 0x83c]
cmp edi, 8
mov edx, dword [ebp - 0x850]
cmovae ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x8d8], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b150
sub ecx, dword [ebp - 0x8d8]
sar ecx, 1
test ecx, ecx
jle 0x40b20a
cmp edi, 8
lea eax, [ebp - 0x850]
cmovae eax, edx
push eax
mov dword [ebp - 0x8d8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40b204
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
push 0
push dword [ebp - 0x8d8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x40b204
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x868]
call fcn.00404eb0
lea ecx, [esi + 0x2c]
lea eax, [ebp - 0x850]
cmp ecx, eax
je 0x40b1f2
push 0xffffffffffffffff
push 0
push eax
call fcn.00404eb0
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
jne 0x40b204
mov edi, dword [ebp - 0x83c]
jmp 0x40b264
mov edi, dword [ebp - 0x83c]
cmp byte [esi + 8], 0
je 0x40b264
cmp byte [esi + 6], 0
je 0x40b264
lea eax, [ebp - 0x898]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00405b30
test eax, eax
je 0x40b230
mov byte [esi + 9], 1
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00405b30
test eax, eax
je 0x40b24a
mov byte [esi + 9], 1
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00405b30
test eax, eax
je 0x40b264
mov byte [esi + 9], 1
cmp edi, 8
jb 0x40b27e
lea eax, [edi + 1]
push eax
push dword [ebp - 0x850]
lea ecx, [ebp - 0x850]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x83c], 7
mov dword [ebp - 0x840], 0
mov word [ebp - 0x850], ax
mov eax, dword [ebp - 0x854]
cmp eax, 8
jb 0x40b2b9
inc eax
lea ecx, [ebp - 0x868]
push eax
push dword [ebp - 0x868]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
mov eax, dword [ebp - 0x86c]
mov dword [ebp - 0x858], 0
cmp eax, 8
jb 0x40b2f4
inc eax
lea ecx, [ebp - 0x880]
push eax
push dword [ebp - 0x880]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x86c], 7
mov word [ebp - 0x880], ax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x870], 0
cmp eax, 8
jb 0x40b32f
inc eax
lea ecx, [ebp - 0x898]
push eax
push dword [ebp - 0x898]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x884], 7
mov word [ebp - 0x898], ax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x888], 0
cmp eax, 8
jb 0x40b36a
inc eax
lea ecx, [ebp - 0x8b0]
push eax
push dword [ebp - 0x8b0]
call fcn.00405130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00579ec9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret