Function at 0x40b390
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 0x40b4e4
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 0x40b500
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 0x40b540
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 0x40b560
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 0x40b594
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.UsrPath
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 0x40b5f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40b6dd
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x40b6dd
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 0x40b6dd
cmp word [ebp - 0x220], 0
jne 0x40b66a
xor ecx, ecx
jmp 0x40b682
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b673
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 0x40b6a3
xor ecx, ecx
jmp 0x40b6bf
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b6b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x14]
call fcn.00404db0
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x40bb32
push 0x208
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x838]
push 0x208
push 0
push eax
call fcn.0057ff70
lea ecx, [esi + 0x5c]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x40b714
mov ecx, dword [ecx]
lea edx, [ebp - 0x838]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40b720
push str.GoodZip.ini
lea eax, [ebp - 0x838]
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.UsrPath
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 0x40b782
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40b86d
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x40b86d
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 0x40b86d
cmp word [ebp - 0x220], 0
jne 0x40b7f6
xor ecx, ecx
jmp 0x40b80f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b800
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 0x40b830
xor ecx, ecx
jmp 0x40b84f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b840
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x14]
call fcn.00404db0
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x40bb32
cmp dword [esi + 0x88], 8
lea eax, [esi + 0x74]
jb 0x40b87b
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.UsrPath
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 0x40b8c6
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40b9ad
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x40b9ad
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 0x40b9ad
cmp word [ebp - 0x220], 0
jne 0x40b93a
xor ecx, ecx
jmp 0x40b952
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b943
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 0x40b973
xor ecx, ecx
jmp 0x40b98f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b980
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x14]
call fcn.00404db0
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x40bb32
push 0x623880
push str.UsrPath
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
cmovae ecx, dword [ebp - 0x850]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b9e5
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40ba93
cmp edi, 8
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
push eax
mov dword [ebp - 0x8d8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40ba8d
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 0x40ba8d
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x868]
call fcn.00404eb0
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x850]
cmp ecx, eax
je 0x40ba83
push 0xffffffffffffffff
push 0
push eax
call fcn.00404eb0
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x40baf5
mov edi, dword [ebp - 0x83c]
cmp byte [esi + 8], 0
je 0x40bafb
cmp byte [esi + 7], 0
je 0x40bafb
lea eax, [ebp - 0x898]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00405b30
test eax, eax
je 0x40bab9
mov byte [esi + 9], 1
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00405b30
test eax, eax
je 0x40bad3
mov byte [esi + 9], 1
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00405b30
test eax, eax
je 0x40bafb
push ecx
lea ecx, [ebp - 0x8b0]
call fcn.0040d810
mov edi, dword [ebp - 0x83c]
cmp edi, 8
jb 0x40bb15
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 0x40bb50
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 0x40bb8b
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 0x40bbc6
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 0x40bc01
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