Function at 0x40b170
Capabilities:
Get file size
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c62ed
mov eax, dword fs:[0]
push eax
sub esp, 0x600
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x604], edi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x60c], esi
mov dword [ebp - 0x5dc], ecx
xor ecx, ecx
mov dword [ebp - 0x5f0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x608], ecx
mov dword [ebp - 0x460], ecx
mov ecx, 0xf
mov dword [ebp - 0x5f4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x5fc], esi
mov dword [ebp - 0x600], ecx
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 0x470], 0
push 0
push ecx
push eax
push 0x4e8e02
push dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp - 4], 0
push edx
call fcn.0040c590
test al, al
jne 0x40b254
movups xmm0, xmmword [ebp - 0x470]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x460]
movq qword [esi + 0x10], xmm0
jmp 0x40bada
mov edx, dword [ebp - 0x5dc]
mov ecx, edx
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 7
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b280
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4b8]
call fcn.004053d0
lea eax, [ebp - 0x4b8]
lea esi, [edi + 0xa4]
push eax
mov ecx, esi
call fcn.00406510
mov edx, dword [ebp - 0x4a4]
cmp edx, 8
jb 0x40b2f0
mov ecx, dword [ebp - 0x4b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov ecx, dword [esi + 0x10]
xor eax, eax
cmp dword [esi + 0x14], 8
mov word [ebp - 0x4b8], ax
mov eax, esi
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 7
mov dword [ebp - 0x5ec], ecx
mov dword [ebp - 0x5dc], esi
jb 0x40b32c
mov eax, dword [esi]
mov dword [ebp - 0x5dc], eax
cmp ecx, 8
jae 0x40b363
movups xmm0, xmmword [eax]
mov eax, 7
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x5e8], eax
mov dword [ebp - 0x474], eax
movups xmmword [ebp - 0x488], xmm0
mov eax, dword [ebp - 0x488]
mov dword [ebp - 0x5e0], eax
mov eax, dword [esi + 0x14]
jmp 0x40b3d8
mov eax, ecx
mov ecx, SysReAllocString
or eax, 7
cmp eax, ecx
cmova eax, ecx
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x5e8], eax
inc eax
push eax
call fcn.00405df0
mov ecx, dword [ebp - 0x5ec]
mov dword [ebp - 0x5e0], eax
mov dword [ebp - 0x488], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x5dc]
push eax
call fcn.004640d0
mov ecx, dword [ebp - 0x5ec]
add esp, 0xc
mov eax, dword [ebp - 0x5e8]
mov dword [ebp - 0x5ec], ecx
mov dword [ebp - 0x478], ecx
mov ecx, dword [edi + 0xb4]
mov dword [ebp - 0x474], eax
mov eax, dword [edi + 0xb8]
mov byte [ebp - 4], 1
mov edx, esi
cmp eax, 8
jb 0x40b3e5
mov edx, dword [esi]
test ecx, ecx
je 0x40b416
lea eax, [ecx - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x40b40d
nop
cmp eax, edx
je 0x40b416
sub eax, 2
cmp word [eax], 0x5c
jne 0x40b400
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40b429
push ecx
push 0x2f
mov ecx, esi
call fcn.0040d210
cmp eax, 0xffffffff
je 0x40b51e
mov ecx, dword [edi + 0xb4]
lea edx, [eax + 1]
sub ecx, eax
mov dword [ebp - 0x4d0], 0
mov eax, dword [esi + 0x10]
dec ecx
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 7
cmp eax, edx
jb 0x40c261
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40b46f
mov eax, dword [esi]
push ecx
lea eax, [eax + edx*2]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004053d0
mov eax, dword [ebp - 0x5e8]
cmp eax, 8
jb 0x40b4bf
mov edx, dword [ebp - 0x5e0]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b4b5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push ecx
push edx
call fcn.0043c464
add esp, 8
movups xmm0, xmmword [ebp - 0x4d0]
xor eax, eax
mov word [ebp - 0x4d0], ax
movups xmmword [ebp - 0x488], xmm0
movq xmm0, qword [ebp - 0x4c0]
movq qword [ebp - 0x478], xmm0
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x5e8], eax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x5ec], eax
mov eax, dword [ebp - 0x488]
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 7
mov dword [ebp - 0x5e0], eax
push 2
xor eax, eax
mov dword [ebp - 0x440], 0
push 0x4e9224
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
call fcn.004053d0
mov esi, dword [ebp - 0x5f0]
mov ecx, esi
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b566
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x440]
call fcn.00405fe0
push 2
push 0x4e922c
lea ecx, [ebp - 0x440]
call fcn.00405fe0
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
lea ecx, [ebp - 0x550]
cmovae eax, dword [ebp - 0x440]
push 0xfde9
mov dword [ebp - 0x554], ecx
lea ecx, [ebp - 0x554]
push eax
call fcn.0040d400
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x554]
mov ecx, edx
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x48c], 0xf
mov byte [ebp - 0x4a0], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b600
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4a0]
call fcn.00406f50
mov eax, dword [ebp - 0x554]
lea ecx, [ebp - 0x550]
cmp eax, ecx
je 0x40b62f
push eax
call fcn.004704e5
add esp, 4
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x430]
cmovae ecx, dword [ebp - 0x440]
mov dword [ebp - 0x5dc], ecx
mov dword [ebp - 0x5f0], eax
cmp eax, 7
ja 0x40b6ab
lea esi, [eax + eax]
mov dword [ebp - 0x418], eax
push esi
push ecx
lea eax, [ebp - 0x428]
push eax
call fcn.00464650
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x428], ax
jmp 0x40b71c
cmp eax, 0x7ffffffe
ja 0x40c266
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40b6ca
mov esi, SysReAllocString
jmp 0x40b6d4
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405df0
mov edi, eax
mov dword [ebp - 0x414], esi
mov eax, dword [ebp - 0x5f0]
mov dword [ebp - 0x418], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x5dc]
push edi
call fcn.004640d0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp - 0x428], edi
mov edi, dword [ebp - 0x604]
push 0x26
push str.Content_Disposition:_form_data__name_
lea ecx, [ebp - 0x428]
call fcn.00405fe0
push 3
push 0x4e9288
lea ecx, [ebp - 0x428]
call fcn.00405fe0
push 2
push 0x4e9290
lea ecx, [ebp - 0x428]
call fcn.00405fe0
push 0xa
push str.filename_
lea ecx, [ebp - 0x428]
call fcn.00405fe0
cmp dword [ebp - 0x5e8], 8
lea eax, [ebp - 0x488]
mov ecx, dword [ebp - 0x5ec]
cmovae eax, dword [ebp - 0x5e0]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00405fe0
push 3
push 0x4e92b0
lea ecx, [ebp - 0x428]
call fcn.00405fe0
push 0x20
push str.Content_Type:application_zip_r_n_r_n
lea ecx, [ebp - 0x428]
call fcn.00405fe0
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x5d4]
cmovae eax, dword [ebp - 0x428]
push 0xfde9
mov dword [ebp - 0x5d8], ecx
lea ecx, [ebp - 0x5d8]
push eax
call fcn.0040d400
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x5d8]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b7f0
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0x84]
call fcn.00406f50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5d4]
mov eax, dword [ebp - 0x5d8]
cmp eax, ecx
je 0x40b823
push eax
call fcn.004704e5
add esp, 4
mov esi, dword [ebp - 0x5f4]
mov ecx, esi
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b853
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x458]
call fcn.00406f50
mov byte [ebp - 4], 8
cmp dword [edi + 0x94], 0
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x5f0], eax
jne 0x40b889
xor eax, eax
jmp 0x40b90a
lea eax, [edi + 0xa4]
xor esi, esi
cmp dword [eax + 0x14], 8
jb 0x40b899
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5f4], eax
cmp eax, 0xffffffff
je 0x40b8fc
lea ecx, [ebp - 0x5e4]
xorps xmm0, xmm0
push ecx
push eax
movq qword [ebp - 0x5e4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40b8f0
cmp dword [ebp - 0x5e0], esi
jg 0x40b8f0
cmp dword [ebp - 0x5e4], 0xffffff
cmovbe esi, dword [ebp - 0x5e4]
push dword [ebp - 0x5f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
je 0x40b90a
mov eax, dword [edi + 0x94]
add eax, esi
add eax, dword [ebp - 0x5f0]
push 0
push eax
push 0
push 0
push 0
push 0
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40baf9
mov esi, dword [ebp - 0x5fc]
movups xmm0, xmmword [ebp - 0x470]
mov edx, dword [ebp - 0x444]
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x460]
movq qword [esi + 0x10], xmm0
cmp edx, 0x10
jb 0x40b98b
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
cmp edx, 8
jb 0x40b9e6
mov ecx, dword [ebp - 0x428]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b9dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x48c]
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
cmp edx, 0x10
jb 0x40ba3d
mov ecx, dword [ebp - 0x4a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ba33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x40ba7d
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ba73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp edx, 8
jb 0x40bada
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bad0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c480
mov esp, ebp
pop ebp
ret 0x1c
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00464bd0
add esp, 0xc
nop
mov ecx, 0x400
lea eax, [ebp - 0x410]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x40bb20
lea eax, [ebp - 0x5dc]
mov dword [ebp - 0x5dc], ecx
push eax
push ecx
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040cea0
mov ecx, dword [ebp - 0x5dc]
mov esi, eax
test ecx, ecx
je 0x40bb68
push 0
push ecx
lea eax, [ebp - 0x410]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
jmp 0x40bb6d
mov eax, 1
test esi, esi
je 0x40bb75
test eax, eax
jne 0x40bb10
mov ecx, dword [ebp - 0x448]
test ecx, ecx
je 0x40bd64
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
push 0
cmovae eax, dword [ebp - 0x458]
push ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x40bd64
mov esi, dword [ebp - 0x5fc]
lea eax, [ebp - 0x470]
push eax
mov ecx, esi
call fcn.00404d50
mov edx, dword [ebp - 0x444]
cmp edx, 0x10
jb 0x40bbfa
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
cmp edx, 8
jb 0x40bc55
mov ecx, dword [ebp - 0x428]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bc4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x48c]
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
cmp edx, 0x10
jb 0x40bcac
mov ecx, dword [ebp - 0x4a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bca2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x40bcec
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bce2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp edx, 8
jb 0x40bd49
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x45c]
cmp edx, 0x10
jb 0x40bada
mov ecx, dword [ebp - 0x470]
inc edx
jmp 0x40bab2
push 0
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40bf5b
mov esi, dword [ebp - 0x5fc]
lea eax, [ebp - 0x470]
push eax
mov ecx, esi
mov dword [edi + 0x80], 1
call fcn.00404d50
mov edx, dword [ebp - 0x444]
cmp edx, 0x10
jb 0x40bdcf
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bdc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
cmp edx, 8
jb 0x40be2a
mov ecx, dword [ebp - 0x428]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x48c]
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
cmp edx, 0x10
jb 0x40be81
mov ecx, dword [ebp - 0x4a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40be77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x40bec1
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40beb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp edx, 8
jb 0x40bf1e
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x45c]
cmp edx, 0x10
jb 0x40bada
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bad0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
jmp 0x40bad0
push 0x1000
call fcn.00470500
add esp, 4
mov esi, eax
lea eax, [ebp - 0x5f8]
mov dword [ebp - 0x5e0], esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40c09e
nop dword [eax + eax]
mov eax, dword [ebp - 0x5f8]
test eax, eax
je 0x40c093
cmp eax, 0x1000
jbe 0x40bfc7
push esi
call fcn.004704e5
push dword [ebp - 0x5f8]
call fcn.00470500
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x5f8]
mov dword [ebp - 0x5e0], esi
lea ecx, [ebp - 0x60c]
push ecx
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40c08b
mov edx, dword [ebp - 0x600]
mov eax, edx
mov ecx, dword [ebp - 0x608]
sub eax, ecx
mov edi, dword [ebp - 0x60c]
push edi
cmp edi, eax
ja 0x40c032
push dword [ebp - 0x5e0]
cmp edx, 0x10
lea esi, [ebp - 0x470]
lea eax, [ecx + edi]
cmovae esi, dword [ebp - 0x470]
add esi, ecx
mov dword [ebp - 0x460], eax
push esi
call fcn.00464650
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x5e0]
jmp 0x40c04c
push esi
mov byte [ebp - 0x5f4], 0
lea ecx, [ebp - 0x470]
push dword [ebp - 0x5f4]
push edi
call fcn.00404a40
mov edi, dword [ebp - 0x604]
lea eax, [ebp - 0x5f8]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40c083
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x600], eax
mov dword [ebp - 0x608], ecx
jmp 0x40bf90
mov edi, dword [ebp - 0x45c]
jmp 0x40c0a3
mov edi, dword [ebp - 0x600]
jmp 0x40c0a3
push esi
call fcn.004704e5
add esp, 4
jmp 0x40c0c9
mov edi, 0xf
push esi
call fcn.004704e5
add esp, 4
mov dword [ebp - 0x460], 0
cmp edi, 0x10
lea eax, [ebp - 0x470]
cmovae eax, dword [ebp - 0x470]
mov byte [eax], 0
mov esi, dword [ebp - 0x5fc]
lea eax, [ebp - 0x470]
push eax
mov ecx, esi
call fcn.00404d50
mov edx, dword [ebp - 0x444]
cmp edx, 0x10
jb 0x40c117
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c10d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
cmp edx, 8
jb 0x40c172
mov ecx, dword [ebp - 0x428]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c168
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x48c]
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
cmp edx, 0x10
jb 0x40c1c9
mov ecx, dword [ebp - 0x4a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x40c205
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp edx, 8
jb 0x40bf1e
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c26b
jmp 0x40bf14
call fcn.00405280
call fcn.00406870
call fcn.00470977
int3