Function at 0x42ace0
Capabilities:
Get file size
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e6fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + 8]
lea esi, [eax + 0x20]
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xa4], eax
cmp eax, dword [ecx + 4]
je 0x42ad6d
mov ecx, esi
call fcn.00408150
mov eax, dword [ebp - 0x8c]
push 4
push dword [eax + 4]
call fcn.004808f7
mov ecx, dword [ebp - 0x8c]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x42adfe
mov eax, dword [ecx + 4]
mov dword [esi + 8], eax
jmp 0x42adfe
test eax, eax
jle 0x42adfe
lea edi, [eax - 1]
test edi, edi
js 0x42adec
cmp edi, dword [esi + 4]
jge 0x42adec
mov eax, dword [esi]
lea ecx, [edi*4]
add eax, ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [eax]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42adba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi*4]
mov edx, dword [esi + 4]
lea eax, [edx - 1]
cmp edi, eax
je 0x42ade0
add ecx, dword [esi]
sub edx, edi
shl edx, 2
lea eax, [edx - 4]
push eax
lea eax, [ecx + 4]
push eax
push edx
push ecx
call fcn.0040a0e0
mov edx, dword [esi + 4]
add esp, 0x10
lea eax, [edx - 1]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xa4]
dec eax
dec edi
mov dword [ebp - 0xa4], eax
test eax, eax
jg 0x42ad78
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx + 4]
xor edi, edi
test eax, eax
jle 0x42ae32
test edi, edi
js 0x42b852
cmp edi, eax
jge 0x42b852
mov eax, dword [ecx]
mov ecx, esi
lea eax, [eax + edi*4]
push eax
call fcn.004081f0
mov ecx, dword [ebp - 0x8c]
inc edi
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x42ae07
mov edi, dword [ebp - 0x90]
push dword [ebp - 0x98]
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0xa8], eax
call fcn.00408560
lea ecx, [edi + 0x18]
push ecx
lea ecx, [edi + 0x1c]
call fcn.00408560
push 5
push str..part
lea ecx, [edi + 0x1c]
call fcn.004021c0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [edi + 0x88], 1
mov eax, dword [esi + 4]
mov dword [ebp - 0x8c], 0
test eax, eax
je 0x42b085
xor ecx, ecx
mov dword [ebp - 0xa4], ecx
test eax, eax
jle 0x42af69
mov edi, dword [ebp - 0x98]
nop dword [eax]
test ecx, ecx
js 0x42b852
cmp ecx, eax
jge 0x42b852
mov eax, dword [esi]
lea edx, [ebp - 0x4c]
push edx
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0x3c
push 0
push 0
push dword [eax + ecx*4]
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x42af21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x42af24
mov edi, dword [ebp - 0x90]
mov esi, eax
jmp 0x42b08a
mov edi, dword [ebp - 0x40]
cmp edi, 5
jne 0x42af38
mov eax, dword [ebp - 0x90]
mov byte [eax + 0x88], 0
jmp 0x42af4b
cmp edi, 3
je 0x42af4b
cmp edi, 4
je 0x42af4b
cmp edi, 1
jne 0x42b07f
mov ecx, dword [ebp - 0xa4]
mov eax, dword [esi + 4]
inc ecx
mov dword [ebp - 0xa4], ecx
cmp ecx, eax
jl 0x42aeb0
mov edi, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov ecx, edi
push eax
call fcn.0042c4b0
mov dword [ebp - 0x98], eax
test eax, eax
je 0x42b1a1
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42b074
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42b074
call fcn.00427020
mov esi, eax
call fcn.00404130
test eax, eax
je 0x42b85e
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x8c]
push 0x1b
push str.InitInetConnection___failed
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42b85e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x90]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0x8c]
push eax
push ecx
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call fcn.00427310
mov byte [ebp - 4], 0xd
or esi, 0xffffffff
mov edx, dword [ebp - 0x90]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b052
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42b074
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x98]
jmp 0x42b81d
mov edi, dword [ebp - 0x90]
mov esi, 0x2ee6
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42b18d
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42b18d
call fcn.00427020
mov dword [ebp - 0x98], eax
call fcn.00404130
test eax, eax
je 0x42b85e
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x8c]
push 0x11
push str.CheckURL___failed
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42b85e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0x8c]
push eax
push ecx
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x90]
push eax
call fcn.00427310
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b15d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x8c]
add ecx, 0xfffffff0
mov dword [ebp - 0x98], ecx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b18d
mov ecx, dword [ecx]
push dword [ebp - 0x98]
mov edx, dword [ecx]
call dword [edx + 4]
push 0
push esi
push 0
lea ecx, [edi + 0xc]
call fcn.0042f000
mov eax, esi
jmp 0x42b81d
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0xd0], 0x4bee40
mov dword [ebp - 0xcc], esi
mov dword [ebp - 4], 0x15
lea eax, [edi + 0x7c]
cmp dword [eax], 0
jbe 0x42b1d2
push 4
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [edi + 0x18]
mov ecx, dword [edx - 0xc]
cmp ecx, 2
jb 0x42b83a
test ecx, ecx
js 0x42b868
cmp word [edx], 0x5c
jne 0x42b201
cmp ecx, 1
jl 0x42b868
cmp word [edx + 2], 0x5c
jne 0x42b20a
jmp 0x42b215
cmp ecx, 1
jl 0x42b868
cmp word [edx + 2], 0x3a
jne 0x42b83a
cmp byte [edi + 0x40], 0
mov dword [ebp - 0xac], 0
je 0x42b2ad
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x9c], 0x4ba518
mov dword [ebp - 0x98], esi
mov byte [ebp - 4], 0x16
cmp esi, 0xffffffff
jne 0x42b270
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x9c], 0x4ba518
push eax
jmp 0x42b297
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42b284
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x9c], 0x4ba518
test esi, esi
je 0x42b2a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x98], 0
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x98], eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42b85e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc8]
mov ecx, edi
push eax
lea eax, [ebp - 0xac]
push eax
push esi
call fcn.0042c780
mov esi, eax
lea eax, [edi + 0xc]
mov ecx, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], eax
call fcn.0042f1a0
test al, al
je 0x42b418
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42b40e
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42b40e
call fcn.00427020
mov esi, eax
call fcn.00404130
test eax, eax
je 0x42b85e
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0xa0]
push 0x15
push str.Download_was_canceled
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42b85e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x90]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0xa0]
push eax
push ecx
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call fcn.00427310
mov byte [ebp - 4], 0x1c
or esi, 0xffffffff
mov edx, dword [ebp - 0x90]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b3ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov eax, esi
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b40e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 0xe0000008
jmp 0x42b7b8
test esi, esi
je 0x42b564
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x42b50a
call fcn.00427020
test byte [eax + 0x20], 8
je 0x42b50a
call fcn.00427020
mov edi, eax
call fcn.00404130
test eax, eax
je 0x42b85e
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x90]
push 0x10
push str.Connect___failed
call fcn.004021c0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42b85e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0xa0]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
lea eax, [ebp - 0x90]
push eax
push ecx
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.00427310
mov byte [ebp - 4], 0x28
or eax, 0xffffffff
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b4e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
or eax, 0xffffffff
mov edi, dword [ebp - 0x90]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42b50a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xe0000013
je 0x42b559
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call fcn.0040d4c0
mov byte [ebp - 4], 0x30
mov ecx, dword [ebp - 0x98]
push 0
push esi
push dword [eax]
call fcn.0042f000
mov byte [ebp - 4], 0x19
or eax, 0xffffffff
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b559
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0xa4]
jmp 0x42b7b8
mov esi, dword [edi + 8]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x94], 0x4bee40
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 0x34
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x70]
mov ecx, dword [edi + 0x68]
mov dword [ebp - 0xbc], 0x4bee38
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x35
mov dword [ebp - 0xbc], 0x4bee9c
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], edx
mov byte [ebp - 4], 0x36
mov ecx, dword [edi + 0x84]
mov eax, dword [ebp - 0xc8]
test ecx, ecx
je 0x42b625
test eax, eax
je 0x42b625
cmp ecx, eax
je 0x42b625
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call fcn.0040d4c0
mov byte [ebp - 4], 0x37
mov ecx, dword [ebp - 0x98]
push 0
push 0xe0000023
push dword [eax]
call fcn.0042f000
mov byte [ebp - 4], 0x36
or eax, 0xffffffff
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b61b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 0xe0000023
jmp 0x42b705
cmp dword [ebp - 0xc4], 1
jne 0x42b6e8
mov eax, dword [edi + 0xc]
xorps xmm0, xmm0
mov cl, byte [edi + 0x80]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x38], eax
xor al, al
cmp byte [edi + 0x62], 0
mov byte [ebp - 0x34], cl
mov ecx, 1
movzx eax, al
cmovne eax, ecx
movsd qword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x80], xmm0
mov byte [ebp - 0x22], al
lea eax, [edi + 0x18]
movups xmmword [ebp - 0x48], xmm0
push eax
movups xmm0, xmmword [edi + 0x42]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x88], 0x4bc22c
push eax
movups xmmword [ebp - 0x32], xmm0
mov word [ebp - 0x84], 0x101
lea ecx, [ebp - 0x88]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 1
mov word [ebp - 0x5c], 1
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x50], 0x4bc22c
mov word [ebp - 0x4c], 0x101
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x58], 1
mov byte [ebp - 0x5a], 1
call fcn.00401bf0
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x42b6e0
cmp byte [edi + 0x62], al
je 0x42b6e0
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [edi + 0x52], xmm0
mov edi, dword [ebp - 0xa4]
jmp 0x42b705
push dword [ebp - 0xac]
mov ecx, edi
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x8c]
call fcn.0042b880
mov edi, eax
mov byte [ebp - 4], 0x34
mov dword [ebp - 0xbc], 0x4bee9c
mov byte [ebp - 4], 0x3c
cmp dword [ebp - 0xb8], 0
je 0x42b767
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x42b747
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0xb8], 0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebp - 0xb4]
call esi
push 0xffffffffffffffff
push dword [ebp - 0xb0]
call esi
mov esi, dword [ebp - 0xa0]
mov byte [ebp - 4], 0x34
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], 0x4bee38
test eax, eax
je 0x42b790
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0xb8], 0
mov byte [ebp - 4], 0x19
push 0
push esi
mov dword [ebp - 0x94], 0x4bee40
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0x15
or eax, 0xffffffff
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b7ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
push 0
push esi
mov dword [ebp - 0xd0], 0x4bee40
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0xcc], 0
mov eax, edi
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.00477280
mov esp, ebp
pop ebp
ret 8
push 0
push 0xe0000005
lea ecx, [edi + 0xc]
push 0
call fcn.0042f000
mov edi, 0xe0000005
jmp 0x42b7f0
push 1
push 0xc000008c
call fcn.00408700
push 0x80004005
call fcn.004022e0
push 0x80070057
call fcn.004022e0
int3