Function at 0x424a4e
Capabilities:
Check for time delay via gettickcount
Get socket status
Print debug messages
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x49774f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x11f4
call fcn.00474b80
mov eax, dword [0x4ba110]
xor eax, esp
mov dword [esp + 0x11f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba110]
xor eax, esp
push eax
lea eax, [esp + 0x1238]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x84], eax
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x38], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x60], eax
jne 0x423f4b
call fcn.004254c0
push 0x4ab4f0
lea ecx, [esp + 0x58]
call fcn.00401ef0
mov dword [esp + 0x1240], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x48], 1
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x423f96
cmp dx, bx
je 0x423f92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x423f96
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x423f70
xor eax, eax
jmp 0x423f9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x423ff3
push 0x4ab4f0
lea ecx, [esp + 0x60]
call fcn.00401ef0
mov esi, dword [esp + 0x5c]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x48], 3
mov ecx, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x423fe6
cmp dx, bx
je 0x423fe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x423fe6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x423fc0
xor eax, eax
jmp 0x423feb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x423ff7
xor bl, bl
jmp 0x423ff9
mov esi, dword [esp + 0x5c]
mov bl, 1
test byte [esp + 0x48], 2
je 0x424027
and dword [esp + 0x48], 0xfffffffd
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4bb670]
je 0x424027
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424027
push esi
call fcn.00473f58
add esp, 4
mov dword [esp + 0x1240], 0xffffffff
test byte [esp + 0x48], 1
je 0x424063
mov edx, dword [esp + 0x54]
add edx, 0xfffffff4
cmp edx, dword [0x4bb670]
je 0x424063
mov esi, dword [esp + 0x54]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424063
push esi
call fcn.00473f58
add esp, 4
test bl, bl
je 0x42406e
xor eax, eax
jmp 0x4253c5
mov eax, dword [edi + 0x14]
push 3
push eax
lea edx, [esp + 0x15c]
lea ecx, [esp + 0x160]
push edx
mov dword [esp + 0x160], ecx
call fcn.00426180
mov dword [esp + 0x1240], 1
mov eax, dword [edi + 0x18]
push 3
push eax
lea edx, [esp + 0xd4]
lea ecx, [esp + 0xd8]
push edx
mov dword [esp + 0xd8], ecx
call fcn.00426180
mov eax, dword [esp + 0x154]
push eax
lea ecx, [esp + 0xa00]
push 0x4ab3bc
push ecx
call fcn.00478fc6
mov edx, dword [esp + 0xd8]
add esp, 0xc
push edx
lea eax, [esp + 0x8f8]
push 0x4ab3bc
push eax
call fcn.00478fc6
add esp, 0xc
lea ecx, [esp + 0x9fc]
push ecx
lea edx, [esp + 0x4f8]
push 0x4ab4f4
push edx
call fcn.00478fc6
add esp, 0xc
push 0x4ab4f4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4bb674]
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x9fc]
push ecx
lea edx, [esp + 0x58]
push str._FILE___s_n
push edx
mov byte [esp + 0x124c], 3
call fcn.004011c0
add esp, 0xc
push 0xf5
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 4
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x4241a5
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x64], eax
mov byte [esp + 0x1248], 5
test eax, eax
je 0x424193
mov ebx, eax
call fcn.00401c10
jmp 0x424195
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 4
mov dword [0x4bd588], ecx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x124c], 3
call fcn.00401d00
mov esi, dword [esp + 0x54]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4241dd
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4241dd
push esi
call fcn.00473f58
add esp, 4
lea edx, [esp + 0x8f4]
push 0x4ab530
push edx
call fcn.0047931f
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov byte [esp + 0x1248], 6
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
fild dword [eax]
test ecx, ecx
jns 0x424224
fadd qword [0x4aba10]
fdiv qword [0x4aba08]
fstp qword [esp]
call fcn.00479070
add esp, 8
call fcn.00474860
mov esi, eax
lea ebx, [esp + 0x8c]
mov dword [esp + 0x48], esi
call fcn.00426000
push 3
call fcn.0043f7b0
add esp, 4
call fcn.0043fd00
mov dword [esp + 0x74], eax
mov edi, esi
cmp esi, 3
jl 0x42426b
mov edi, 3
mov edx, dword [esp + 0x74]
push edi
push 6
push edx
call fcn.00440270
or eax, 0xffffffff
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
test edi, edi
je 0x4242c8
mov esi, dword [esp + 0x8c]
jmp 0x4242a0
mov eax, dword [esp + 0x74]
push 0
push eax
lea ecx, [esp + 0xa04]
mov edx, ebx
call fcn.004237e0
inc ebx
add esp, 8
add esi, 0x1c
cmp ebx, edi
jb 0x4242a0
mov esi, dword [esp + 0x48]
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x4f4]
push 0x4ab534
push ecx
call fcn.00478fc6
add esp, 8
push 0x4ab534
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x4bb674]
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x4c]
push str._n_START___n
push eax
mov byte [esp + 0x1248], 7
call fcn.004011c0
add esp, 8
push 0x11b
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 8
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x424369
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x6c], eax
mov byte [esp + 0x1248], 9
test eax, eax
je 0x424357
mov ebx, eax
call fcn.00401c10
jmp 0x424359
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 8
mov dword [0x4bd588], ecx
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x124c], 7
call fcn.00401d00
mov eax, dword [esp + 0x4c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4243a1
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4243a1
push edi
call fcn.00473f58
add esp, 4
cmp dword [esp + 0x68], 0
mov dword [esp + 0x60], 1
je 0x424c8c
xor edi, edi
cmp dword [esp + 0x48], edi
jle 0x424531
mov edx, dword [esp + 0x8c]
add edx, 4
mov dword [esp + 0x4c], edx
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 8]
add edx, 0x1f40
cmp eax, edx
jbe 0x424521
mov esi, ecx
mov eax, dword [esi]
cmp dword [esi + 0xc], eax
jne 0x424515
cmp byte [esi + 4], 0
jne 0x424521
mov eax, ecx
cmp byte [eax + 5], 0
je 0x424521
push edi
lea ecx, [esp + 0x4f8]
push 0x4ab5f8
push ecx
call fcn.00478fc6
add esp, 0xc
push 0x4ab5f8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x4bb674]
mov dword [esp + 0x44], edx
push edi
lea eax, [esp + 0x48]
push str._n_TIMEOUT___i_n
push eax
mov byte [esp + 0x124c], 0xd
call fcn.004011c0
add esp, 0xc
push 0x125
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 0xe
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x4244b4
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x90], eax
mov byte [esp + 0x1248], 0xf
test eax, eax
je 0x4244a2
mov ebx, eax
call fcn.00401c10
jmp 0x4244a4
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 0xe
mov dword [0x4bd588], ecx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x124c], 0xd
call fcn.00401d00
mov byte [esp + 0x1240], 6
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4244f4
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4244f4
push esi
call fcn.00473f58
add esp, 4
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x4c]
push 1
push edx
add esi, 0xfffffffc
lea ecx, [esp + 0xa04]
mov edx, edi
call fcn.004237e0
add esp, 8
jmp 0x424521
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
add dword [esp + 0x4c], 0x1c
inc edi
cmp edi, dword [esp + 0x48]
jl 0x4243d0
mov ebx, dword [esp + 0x74]
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.00441d30
xor edi, edi
add esp, 8
cmp dword [esp + 0x68], edi
je 0x42475b
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x2e8]
push edx
lea eax, [esp + 0x3f4]
push eax
lea ecx, [esp + 0x1e8]
push ecx
push ebx
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x400], edi
mov dword [esp + 0x2f8], edi
call fcn.0043fe70
add esp, 0x14
test eax, eax
jne 0x424d61
mov ecx, dword [esp + 0x50]
cmp ecx, 0xffffffff
jne 0x4245aa
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x9c]
cmp esi, 0xffffffff
jne 0x4246fe
lea edx, [esp + 0x4f4]
push 0x4ab670
push edx
call fcn.00478fc6
add esp, 8
push 0x4ab670
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4bb674]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x44]
push str.Sleep_curlTimeout__n
push ecx
mov byte [esp + 0x1248], 0x22
call fcn.004011c0
mov edx, dword [0x4bb674]
add esp, 8
push 0x150
push ecx
mov esi, esp
mov dword [esp + 0x90], esp
push str.InternetFile::Download
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x424679
push edi
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x424679
lea eax, [edi + 1]
mov edi, dword [esi]
test eax, eax
jne 0x42463e
test edi, edi
jne 0x42465c
push eax
push edi
push 0xffffffffffffffff
push str.InternetFile::Download
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x42465c
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
mov ecx, esi
call fcn.00401b30
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
mov dword [ecx - 8], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x1248], 0x23
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x4246c4
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x6c], eax
mov byte [esp + 0x1248], 0x24
test eax, eax
je 0x4246ae
mov ebx, eax
call fcn.00401c10
jmp 0x4246b0
xor eax, eax
mov byte [esp + 0x1248], 0x23
mov ebx, dword [esp + 0x7c]
mov ecx, eax
mov dword [0x4bd588], ecx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x124c], 0x22
call fcn.00401d00
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x42475b
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42475b
push esi
call fcn.00473f58
add esp, 4
jmp 0x42475b
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xa8], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x2e8]
push eax
mov dword [esp + 0xb4], ecx
lea ecx, [esp + 0x3f4]
push ecx
lea edx, [esp + 0x1e8]
push edx
inc esi
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x424f7b
lea eax, [esp + 0xa4]
push eax
push ebx
call fcn.00440100
mov esi, eax
add esp, 8
mov dword [esp + 0x4c], esi
test esi, esi
je 0x424c7d
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x8c]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*4]
mov dword [esp + 0x64], eax
jmp 0x4247a4
mov esi, dword [esp + 0x4c]
cmp dword [esi], 1
mov edi, dword [esp + 0x48]
jne 0x42508e
cmp dword [esi + 8], 0
jne 0x424b20
mov esi, dword [esi + 4]
lea ecx, [esp + 0x70]
push ecx
push 0x100015
push esi
mov dword [esp + 0x58], esi
call fcn.0043faf0
xor esi, esi
add esp, 0xc
mov dword [esp + 0x44], esi
test edi, edi
jle 0x424904
jmp 0x4247f0
mov eax, dword [esp + 0x8c]
lea edx, [esi*8]
sub edx, esi
cmp dword [eax + edx*4 + 4], 0x4b000
lea ebx, [eax + edx*4]
jb 0x4248e9
lea ecx, [edi - 1]
cmp dword [ebx + 0x14], ecx
jge 0x4248e9
cmp byte [ebx + 9], 0
je 0x42482d
cmp byte [ebx + 8], 0
jne 0x42482d
mov byte [ebx + 8], 1
test esi, esi
jne 0x42483c
cmp byte [eax + 0xa], 0
jne 0x42483c
lea eax, [esi + 1]
jmp 0x42483e
xor eax, eax
test esi, esi
jle 0x424855
cmp byte [ebx - 0x12], 0
je 0x424855
cmp byte [ebx + 8], 0
je 0x424855
mov ecx, 1
jmp 0x424857
xor ecx, ecx
or al, cl
je 0x4248e9
mov edx, dword [esp + 0x58]
push edx
mov ecx, 7
mov esi, ebx
lea edi, [esp + 0xb4]
push 0x4b000
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xb8]
push 1
push eax
call fcn.00477d6e
mov esi, dword [esp + 0x94]
add esp, 0x10
test esi, esi
je 0x4248cb
mov eax, dword [ebx + 4]
mov edi, 0x4b000
cmp eax, 0x4b000
jae 0x4248a7
mov edi, eax
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4248f8
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x70]
push edi
push edx
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebx + 0xa], 1
mov ecx, dword [ebx]
push ecx
call fcn.004741b6
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
add esp, 4
mov dword [ebx + 4], 0
inc esi
mov dword [esp + 0x44], esi
cmp esi, edi
jl 0x4247f0
jmp 0x424904
mov edi, dword [esp + 0x48]
mov dword [esp + 0x5c], 1
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x74]
push esi
push edx
call fcn.00440ed0
push esi
call fcn.0043fa90
add esp, 0xc
cmp dword [esp + 0x54], edi
jae 0x424c5c
mov edi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x4f8]
push 0x4ab6cc
push eax
call fcn.00478fc6
add esp, 0xc
push 0x4ab6cc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x4bb674]
mov dword [esp + 0x44], ecx
push edi
lea edx, [esp + 0x48]
push str._n_INIT___i_n
push edx
mov byte [esp + 0x124c], 0x3a
call fcn.004011c0
mov eax, dword [0x4bb674]
add esp, 0xc
push 0x183
push ecx
mov esi, esp
mov dword [esp + 0x90], esp
push str.InternetFile::Download
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x424a68
push ebx
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x424a68
inc ebx
mov edi, dword [esi]
jne 0x4249b4
test edi, edi
jne 0x4249d2
push ebx
push edi
push 0xffffffffffffffff
push str.InternetFile::Download
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4249d2
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
lea ebx, [eax - 0xc]
jle case.0x424a47.0
add eax, 0xfffffff4
cmp eax, dword [0x4bb670]
je 0x424a09
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424a01
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00473f58
add esp, 4
mov edx, dword [0x4bb674]
mov dword [esi], edx
mov eax, dword [ebx + 4]
push eax
mov ecx, esi
call fcn.00401970
test eax, eax
je case.0x424a47.0
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [eax - 4]
lea ecx, [ecx + ecx + 2]
push ecx
add ebx, 0xc
lea edx, [edx + edx + 2]
push ebx
push edx
push eax
call fcn.00473c51
add esp, 0x10
cmp eax, 0x50
ja case.0x424a47.1
movzx ecx, byte [eax + 0x4253fc]
jmp dword [ecx*4 + 0x4253ec]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
mov edi, dword [esp + 0x5c]
mov dword [ecx - 8], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x1248], 0x3b
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x424aaf
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x5c], eax
mov byte [esp + 0x1248], 0x3c
test eax, eax
je 0x424a9d
mov ebx, eax
call fcn.00401c10
jmp 0x424a9f
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 0x3b
mov dword [0x4bd588], ecx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x124c], 0x3a
call fcn.00401d00
mov byte [esp + 0x1240], 6
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x424aef
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424aef
push esi
call fcn.00473f58
add esp, 4
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x64]
push 0
push edx
lea ecx, [esp + 0xa04]
mov edx, edi
call fcn.004237e0
inc edi
add esi, 0x1c
add esp, 8
inc dword [esp + 0x68]
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], esi
jmp 0x424c5c
lea eax, [esp + 0x4f4]
push 0x4ab6f8
push eax
call fcn.00478fc6
add esp, 8
push 0x4ab6f8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x4bb674]
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x44]
push str._nCURL_CONNECTION_ERROR
push edx
mov byte [esp + 0x1248], 0x40
call fcn.004011c0
add esp, 8
push 0x18a
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 0x41
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x424bc4
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x74], eax
mov byte [esp + 0x1248], 0x42
test eax, eax
je 0x424bb2
mov ebx, eax
call fcn.00401c10
jmp 0x424bb4
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 0x41
mov dword [0x4bd588], ecx
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x124c], 0x40
call fcn.00401d00
mov byte [esp + 0x1240], 6
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x424c04
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424c04
push esi
call fcn.00473f58
add esp, 4
dec dword [esp + 0x60]
je 0x425063
xor edi, edi
cmp dword [esp + 0x48], edi
jle 0x424c5c
mov ebx, dword [esp + 0x8c]
add ebx, 9
cmp byte [ebx - 1], 0
jne 0x424c52
cmp byte [ebx], 0
je 0x424c52
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
cmp eax, dword [ebx + 0xf]
jne 0x424c52
mov ecx, dword [esp + 0x74]
push 1
push ecx
lea esi, [ebx - 9]
lea ecx, [esp + 0xa04]
mov edx, edi
call fcn.004237e0
add esp, 8
inc edi
add ebx, 0x1c
cmp edi, dword [esp + 0x48]
jl 0x424c20
mov eax, dword [esp + 0x74]
lea edx, [esp + 0xa4]
push edx
push eax
call fcn.00440100
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4247a0
cmp dword [esp + 0x68], 0
jne 0x4243b4
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x84]
lea eax, [esi*8]
sub eax, esi
lea edi, [ecx + eax*4]
mov eax, dword [edi - 0x18]
mov ecx, dword [edi - 0x1c]
push edx
push eax
push 1
push ecx
call fcn.00477d6e
mov edx, dword [esp + 0x68]
push edx
call fcn.00475ef3
add esp, 0x14
lea eax, [esp + 0x4f4]
push 0x4ab76c
push eax
call fcn.00478fc6
add esp, 8
push 0x4ab76c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x4bb674]
mov dword [esp + 0x58], ecx
lea edx, [esp + 0x58]
push str._FINISH___n
push edx
mov byte [esp + 0x1248], 0x49
call fcn.004011c0
add esp, 8
push 0x1a0
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 0x4a
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x4251b9
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x1248], 0x4b
test eax, eax
je 0x4251a0
mov ebx, eax
call fcn.00401c10
jmp 0x4251a2
lea ecx, [esp + 0x4f4]
push 0x4ab628
push ecx
call fcn.00478fc6
add esp, 8
push 0x4ab628
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x4bb674]
mov dword [esp + 0x50], edx
lea eax, [esp + 0x50]
push str.Error:_curl_multi_fdset
push eax
mov byte [esp + 0x1248], 0x1c
call fcn.004011c0
add esp, 8
push 0x13e
push ecx
mov ecx, dword [0x4bb674]
mov esi, esp
mov dword [esp + 0x74], esp
push str.InternetFile::Download
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x424eb8
push edi
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x424eb8
lea eax, [edi + 1]
mov edi, dword [esi]
test eax, eax
jne 0x424deb
test edi, edi
jne 0x424e09
push eax
push edi
push 0xffffffffffffffff
push str.InternetFile::Download
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x424e09
xor edx, edx
mov word [edi + eax*2 - 2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
lea edi, [eax - 0xc]
jle case.0x424e7d.0
add eax, 0xfffffff4
cmp eax, dword [0x4bb670]
je 0x424e43
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424e3c
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00473f58
add esp, 4
mov eax, dword [0x4bb674]
mov dword [esi], eax
mov ecx, dword [edi + 4]
push ecx
mov ecx, esi
call fcn.00401970
test eax, eax
je case.0x424e7d.0
mov ecx, dword [edi + 4]
mov eax, dword [esi]
mov edx, dword [eax - 4]
lea ecx, [ecx + ecx + 2]
push ecx
add edi, 0xc
lea edx, [edx + edx + 2]
push edi
push edx
push eax
call fcn.00473c51
add esp, 0x10
cmp eax, 0x50
ja case.0x424a47.1
movzx edx, byte [eax + 0x425460]
jmp dword [edx*4 + 0x425450]
push 0x8007000e
call fcn.00401000
push 0x80070057
call fcn.00401000
push 0x80004005
call fcn.00401000
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
mov dword [ecx - 8], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x1248], 0x1d
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x424eff
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x1248], 0x1e
test eax, eax
je 0x424eed
mov ebx, eax
call fcn.00401c10
jmp 0x424eef
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 0x1d
mov dword [0x4bd588], ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x124c], 0x1c
call fcn.00401d00
mov eax, dword [esp + 0x50]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x424f37
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424f37
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x424f4b
push eax
call fcn.00473515
add esp, 4
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0xd0]
cmp eax, edx
je 0x424f66
push eax
call fcn.004741b6
add esp, 4
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x158]
cmp eax, ecx
jmp 0x4253b5
lea edx, [esp + 0x4f4]
push 0x4ab6ac
push edx
call fcn.00478fc6
add esp, 8
push 0x4ab6ac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4bb674]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x50]
push str.failure__n
push ecx
mov byte [esp + 0x1248], 0x28
call fcn.004011c0
add esp, 8
push 0x157
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 0x29
mov ecx, dword [0x4bd588]
cmp ecx, edi
jne 0x42501d
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x1248], 0x2a
cmp eax, edi
je 0x425009
mov ebx, eax
call fcn.00401c10
jmp 0x42500b
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 0x29
mov dword [0x4bd588], ecx
xor edi, edi
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x124c], 0x28
call fcn.00401d00
mov eax, dword [esp + 0x50]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x425055
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x425055
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [esp + 0x8c]
cmp eax, edi
jmp 0x424f40
lea ecx, [esp + 0x74]
call fcn.00473f63
push 0x4b1888
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], vtable.InetErr.0
mov dword [esp + 0x88], 4
call fcn.0047416a
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x4f8]
push 0x4ab740
push ecx
call fcn.00478fc6
add esp, 0xc
push 0x4ab740
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x4bb674]
mov dword [esp + 0x50], edx
mov byte [esp + 0x1240], 0x43
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x54]
push str.Curl_Error__s
push ecx
call fcn.004011c0
add esp, 0xc
push 0x195
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 0x44
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x425135
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x1248], 0x45
test eax, eax
je 0x425123
mov ebx, eax
call fcn.00401c10
jmp 0x425125
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 0x44
mov dword [0x4bd588], ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x124c], 0x43
call fcn.00401d00
mov byte [esp + 0x1240], 6
mov eax, dword [esp + 0x50]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x425175
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x425175
push esi
call fcn.00473f58
add esp, 4
lea ecx, [esp + 0x74]
call fcn.00473f63
push 0x4b1888
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], vtable.InetErr.0
mov dword [esp + 0x88], 4
call fcn.0047416a
xor eax, eax
mov ebx, dword [esp + 0x8c]
mov ecx, eax
mov byte [esp + 0x1248], 0x4a
mov dword [0x4bd588], ecx
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x124c], 0x49
call fcn.00401d00
mov eax, dword [esp + 0x58]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4251f1
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4251f1
push esi
call fcn.00473f58
add esp, 4
mov edx, dword [esp + 0x74]
push edx
call fcn.00440000
add esp, 4
call fcn.0043f840
test ebx, ebx
je 0x425245
mov edi, dword [edi - 0x18]
cmp edi, 0x4b000
jb 0x425217
mov edi, 0x4b000
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42523d
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0x70]
push edi
push ecx
push 0x402
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x425245
mov dword [esp + 0x5c], 1
lea eax, [esp + 0x4f4]
push 0x4ab82c
push eax
call fcn.00478fc6
add esp, 8
push 0x4ab82c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x4bb674]
mov dword [esp + 0x58], ecx
lea edx, [esp + 0x58]
push str.finish_mt_download__n
push edx
mov byte [esp + 0x1248], 0x4c
call fcn.004011c0
add esp, 8
push 0x1a7
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push str.InternetFile::Download
call fcn.00401ef0
mov byte [esp + 0x1248], 0x4d
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x4252e6
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x1248], 0x4e
test eax, eax
je 0x4252d4
mov ebx, eax
call fcn.00401c10
jmp 0x4252d6
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1248], 0x4d
mov dword [0x4bd588], ecx
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x124c], 0x4c
call fcn.00401d00
mov byte [esp + 0x1240], 6
mov eax, dword [esp + 0x58]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x425326
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x425326
push esi
call fcn.00473f58
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0xa0]
mov dword [ecx + 0x3c], eax
sub eax, dword [ecx + 0x38]
cmp byte [ecx + 0x24], 0
mov dword [ecx + 0x40], eax
je 0x425347
call fcn.00423bc0
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x425376
lea ecx, [esp + 0x74]
call fcn.00473f63
push 0x4b1888
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], vtable.InetErr.0
mov dword [esp + 0x88], esi
call fcn.0047416a
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x42538a
push eax
call fcn.00473515
add esp, 4
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xd0]
cmp eax, ecx
je 0x4253a5
push eax
call fcn.004741b6
add esp, 4
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x158]
cmp eax, edx
je 0x4253c0
push eax
call fcn.004741b6
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x11f0]
xor ecx, esp
call fcn.0047421a
mov esp, ebp
pop ebp
ret 4