Function at 0x4027c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x491587
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b3cc4]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push edi
mov eax, dword [0x4b3cc4]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
push esi
mov dword [esp + 0x1c], esi
call fcn.0040eca0
xor ebx, ebx
mov dword [esp + 0x230], ebx
mov dword [esi], vtable.CMainWnd.0
mov dword [esi + 0x10], vtable.CMainWnd.1.0
mov dword [esi + 0x14], vtable.CMainWnd.2.0
mov dword [esi + 0x18], vtable.CMainWnd.3.0
call fcn.0046592b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402842
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x3a8], eax
mov byte [esp + 0x230], 1
call fcn.0046592b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402876
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x3c0], eax
mov byte [esp + 0x230], 2
lea ebp, [esi + 0x3c4]
call fcn.0046592b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4028b0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x230], 3
lea edi, [esi + 0x3c8]
call fcn.0046592b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4028e7
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea ecx, [esi + 0x3cc]
push ecx
mov byte [esp + 0x234], 4
call fcn.00405a70
lea edx, [esi + 0x3e4]
push edx
mov byte [esp + 0x234], 5
call fcn.00405a70
mov byte [esp + 0x230], 6
push ebx
push 0x498dd4
mov ecx, ebp
mov dword [esi + 0x3b0], ebx
mov dword [esi + 0x3b4], ebx
mov dword [esi + 0x3b8], ebx
mov dword [esi + 0x3ac], ebx
call fcn.004015e0
push 0x498eb0
lea eax, [esp + 0x18]
push 0x4ba4dc
push eax
mov byte [esi + 0x3bc], bl
call fcn.00401f20
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x234], 7
call fcn.00402060
mov byte [esp + 0x230], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40299f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x206
lea edx, [esp + 0x22]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x28], cx
call fcn.004768f0
add esp, 0xc
push str.download.ini
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00401f20
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0x498dd4
push str.savepath
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402a0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402a15
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea edi, [esi + 0x3a8]
mov ecx, edi
call fcn.004015e0
mov eax, dword [edi]
mov ecx, 0x498dd4
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402a66
cmp dx, bx
je 0x402a62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402a66
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x402a40
xor eax, eax
jmp 0x402a6b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x402ac7
push str.DownLoad_
lea edx, [esp + 0x18]
push 0x4ba4e0
push edx
call fcn.00401f20
add esp, 0xc
push eax
lea ecx, [esi + 0x3a8]
mov byte [esp + 0x234], 8
call fcn.00402060
mov byte [esp + 0x230], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00472007
add esp, 0x224
ret