Function at 0x40c890
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x4bd024
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4f4df4]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x164], ebx
call fcn.0040d250
test al, al
jne 0x40c8da
mov ecx, esi
call fcn.0040d580
mov esi, eax
jmp 0x40d226
push 0x65b6
lea ecx, [esp + 0x14]
mov dword [esi + 0x84], ebx
call fcn.004b3888
mov ecx, dword [esp + 0x10]
push ecx
push 0x4033
mov ecx, esi
call fcn.004b1d1c
mov eax, dword [0x4f7940]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x30], ebx
jle 0x40c9a2
mov edx, dword [0x4f793c]
mov eax, dword [edx + edi*4]
cmp byte [eax + 0x310], bl
jne 0x40c985
mov ebp, dword [esi + 0x84]
inc ebp
mov dword [esi + 0x84], ebp
mov ecx, dword [0x4f793c]
mov ecx, dword [ecx + edi*4]
mov eax, dword [ecx + 0x30c]
cmp eax, ebx
jne 0x40c95a
mov edx, dword [0x4f7930]
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040d8b0
cmp eax, ebx
je 0x40c96e
cmp eax, 0xffffffff
je 0x40c96e
mov ecx, dword [0x4f793c]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0x30c], eax
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
cmp edx, ecx
je 0x40c981
cmp eax, ecx
je 0x40c981
mov ecx, edx
add ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, esi
call fcn.0040d570
test al, al
jne 0x40cdf5
mov eax, dword [0x4f7940]
inc edi
cmp edi, eax
jl 0x40c912
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], ebx
mov eax, dword [0x4f7940]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ecx
jle 0x40cdeb
mov eax, dword [0x4f793c]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x310], bl
jne 0x40cdd9
mov dword [esi + 0x8c], eax
mov edx, dword [0x4f793c]
mov ebp, dword [edx + ecx*4]
lea ecx, [esi + 0x80]
lea edi, [ebp + 0x104]
push edi
call fcn.004b2934
mov ecx, dword [esi + 0x88]
push ebp
inc ecx
mov dword [esi + 0x88], ecx
lea ecx, [esp + 0x18]
call fcn.004b2819
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
mov byte [esp + 0x180], 1
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, ebx
mov dword [esi + 0x68], eax
je 0x40ce24
mov eax, dword [0x4f793c]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.0040d630
mov ecx, esi
call fcn.0040d570
test al, al
jne 0x40d046
mov eax, dword [0x4f4df4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x180], 6
xor edi, edi
call fcn.0040d7c0
test al, al
je 0x40ce8b
mov eax, dword [esp + 0x34]
cmp eax, 3
jne 0x40cac4
jmp 0x40cad2
cmp eax, 1
jne 0x40ce9d
mov edi, 0x8000000
mov ecx, dword [esp + 0x2c]
push esi
push edi
push eax
cmp dword [ecx - 8], ebx
jne 0x40caf3
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4f7930]
push ebx
push ebx
push edx
push eax
push ecx
jmp 0x40cb0a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [0x4f7930]
push ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edx
call dword [0x4f7908]
cmp eax, ebx
mov dword [esi + 0x64], eax
je 0x40ceab
mov ecx, dword [esp + 0x34]
cmp ecx, 3
jne 0x40cb40
mov ecx, dword [esp + 0x20]
push esi
push 0x84400000
push 0x4e9d18
push ebx
push ebx
push ecx
push ebx
push eax
call dword [0x4f790c]
jmp 0x40cb5c
cmp ecx, 1
jne 0x40cb5f
mov edx, dword [esp + 0x20]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocStringLen
push edx
push eax
call dword [0x4f7910]
mov dword [esi + 0x60], eax
cmp dword [esi + 0x60], ebx
je 0x40cf25
mov eax, dword [esp + 0x34]
cmp eax, 3
jne 0x40cd17
mov eax, dword [esi + 0x60]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [0x4f7918]
test eax, eax
je 0x40cf9a
mov ecx, esi
call fcn.0040d570
test al, al
jne 0x40d002
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x4c]
push ebx
lea edx, [esp + 0x44]
push ecx
push edx
push 0x20000013
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x60], 4
call dword [0x4f7914]
test eax, eax
je 0x40d05b
mov eax, dword [esp + 0x40]
cmp eax, 0xc8
je 0x40ccbf
cmp eax, 0x197
je 0x40cbe9
cmp eax, 0x191
jne 0x40cc05
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.0040d730
test al, al
je 0x40d176
jmp 0x40cb68
cmp eax, 0x12e
je 0x40cc17
cmp eax, 0x12d
jne 0x40d0be
mov edx, dword [esi + 0x60]
lea eax, [esp + 0x50]
push ebx
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x21
push edx
mov dword [esp + 0x64], 0x104
call dword [0x4f7914]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push eax
call fcn.004b2934
push 0x65b3
lea ecx, [esp + 0x14]
call fcn.004b3888
mov ecx, dword [esp + 0x14]
push ecx
push 0x4e91d0
lea ecx, [esp + 0x18]
call fcn.004acad8
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0x4033
call fcn.004b1d1c
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 5
call fcn.004b27ab
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004b27ab
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004b27ab
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004b27ab
jmp 0x40ca40
mov edx, dword [esi + 0x60]
lea eax, [esp + 0x4c]
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x20000005
push edx
call dword [0x4f7914]
test eax, eax
jne 0x40cce1
mov dword [esp + 0x28], ebx
mov eax, dword [0x4f793c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov edx, dword [eax + ecx*4]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040dc30
test al, al
je 0x40d0b5
jmp 0x40cd53
cmp eax, 1
jne 0x40cd53
mov ecx, dword [0x4f793c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ebx
mov eax, dword [ecx + edx*4]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0x30c]
lea eax, [esp + 0x40]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040dc30
test al, al
je 0x40d1ce
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esi + 0x60]
mov dword [esi + 0x68], ebx
push eax
call dword [0x4f7920]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x60], ebx
mov ecx, dword [0x4f793c]
mov byte [esp + 0x164], 5
mov eax, dword [ecx + edx*4]
lea ecx, [esp + 0x24]
mov byte [eax + 0x310], 1
call fcn.004b27ab
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004b27ab
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004b27ab
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004b27ab
mov ecx, dword [esp + 0x18]
mov eax, dword [0x4f7940]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x40c9cb
mov dword [esi + 0x74], 1
mov byte [esi + 0x70], bl
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004b27ab
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret
mov ecx, dword [0x4f4df4]
mov dword [esp + 0x28], ecx
push ebx
mov byte [esp + 0x168], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x2c]
push eax
push edx
mov ecx, esi
call fcn.0040d5a0
add ebp, 0x104
lea edi, [esi + 0x7c]
push ebp
push 0x4e91d0
mov ecx, edi
call fcn.004acad8
mov eax, dword [esp + 0x28]
mov ecx, edi
push eax
push 0x4e9e50
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
mov esi, eax
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x28]
jmp 0x40d211
mov ecx, dword [esp + 0x14]
push ecx
push 0x4e91d0
lea ecx, [esi + 0x7c]
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
mov esi, eax
jmp 0x40d1d2
mov edx, dword [0x4f4df4]
mov dword [esp + 0x28], edx
push str.wininet.dll
mov byte [esp + 0x168], 7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0040d5a0
lea edi, [esi + 0x7c]
push 0x65b7
mov ecx, edi
call fcn.004b3888
mov ecx, dword [esp + 0x1c]
push ecx
push 0x4e91d0
mov ecx, edi
call fcn.004acad8
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
push 0x4e9e50
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004b27ab
jmp 0x40d1d2
mov eax, dword [0x4f4df4]
mov dword [esp + 0x28], eax
push str.wininet.dll
mov byte [esp + 0x168], 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.0040d5a0
lea edi, [esi + 0x7c]
push 0x65ba
mov ecx, edi
call fcn.004b3888
push ebp
push 0x4e91d0
mov ecx, edi
call fcn.004acad8
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
push 0x4e9e50
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004b27ab
jmp 0x40d1d2
mov eax, dword [0x4f4df4]
mov dword [esp + 0x18], eax
push str.wininet.dll
mov byte [esp + 0x168], 9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040d5a0
lea edi, [esi + 0x7c]
push 0x65bb
mov ecx, edi
call fcn.004b3888
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
push 0x4e91d0
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004b27ab
jmp 0x40d1d2
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 5
call fcn.004b27ab
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004b27ab
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004b27ab
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004b27ab
jmp 0x40cdf5
mov eax, dword [0x4f4df4]
mov dword [esp + 0x18], eax
push str.wininet.dll
mov byte [esp + 0x168], 0xa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040d5a0
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x7c]
push edx
push 0x4e91d0
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004b27ab
jmp 0x40d1d2
mov esi, dword [esp + 0x3c]
jmp 0x40d1d2
push eax
lea eax, [esp + 0x14]
push 0x4e9e4c
push eax
call fcn.004ad14b
add esp, 0xc
lea edi, [esi + 0x7c]
mov ecx, edi
push 0x65b9
call fcn.004b3888
push ebp
push 0x4e91d0
mov ecx, edi
call fcn.004acad8
mov ecx, dword [esp + 0x10]
push ecx
push 0x4e9e50
mov ecx, edi
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x164], 5
call fcn.004b27ab
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004b27ab
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004b27ab
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004b27ab
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004b27ab
mov eax, esi
jmp 0x40ce0b
mov edx, dword [0x4f4df4]
mov dword [esp + 0x18], edx
push str.wininet.dll
mov byte [esp + 0x168], 0xb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0040d5a0
mov ecx, dword [esp + 0x18]
push ecx
push 0x4e91d0
lea ecx, [esi + 0x7c]
call fcn.004acad8
mov ecx, esi
call fcn.0040d580
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004b27ab
jmp 0x40d1d2
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 5
call fcn.004b27ab
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004b27ab
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004b27ab
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x1c]
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004b27ab
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004b27ab
mov eax, esi
jmp 0x40ce0b