Function at 0x40b310
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x4e2da4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x52a0ac]
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.0040bcd0
test al, al
jne 0x40b35a
mov ecx, esi
call fcn.0040c000
mov esi, eax
jmp 0x40bca6
push 0x88da
lea ecx, [esp + 0x14]
mov dword [esi + 0x84], ebx
call fcn.004d95f9
mov ecx, dword [esp + 0x10]
push ecx
push 0x576
mov ecx, esi
call fcn.004d7a8e
mov eax, dword [0x52c4c0]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x30], ebx
jle 0x40b422
mov edx, dword [0x52c4bc]
mov eax, dword [edx + edi*4]
cmp byte [eax + 0x310], bl
jne 0x40b405
mov ebp, dword [esi + 0x84]
inc ebp
mov dword [esi + 0x84], ebp
mov ecx, dword [0x52c4bc]
mov ecx, dword [ecx + edi*4]
mov eax, dword [ecx + 0x30c]
cmp eax, ebx
jne 0x40b3da
mov edx, dword [0x52c4b0]
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040c330
cmp eax, ebx
je 0x40b3ee
cmp eax, 0xffffffff
je 0x40b3ee
mov ecx, dword [0x52c4bc]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0x30c], eax
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
cmp edx, ecx
je 0x40b401
cmp eax, ecx
je 0x40b401
mov ecx, edx
add ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, esi
call fcn.0040bff0
test al, al
jne 0x40b875
mov eax, dword [0x52c4c0]
inc edi
cmp edi, eax
jl 0x40b392
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], ebx
mov eax, dword [0x52c4c0]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ecx
jle 0x40b86b
mov eax, dword [0x52c4bc]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x310], bl
jne 0x40b859
mov dword [esi + 0x8c], eax
mov edx, dword [0x52c4bc]
mov ebp, dword [edx + ecx*4]
lea ecx, [esi + 0x80]
lea edi, [ebp + 0x104]
push edi
call fcn.004d86a9
mov ecx, dword [esi + 0x88]
push ebp
inc ecx
mov dword [esi + 0x88], ecx
lea ecx, [esp + 0x18]
call fcn.004d858e
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 0x40b8a4
mov eax, dword [0x52c4bc]
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.0040c0b0
mov ecx, esi
call fcn.0040bff0
test al, al
jne 0x40bac6
mov eax, dword [0x52a0ac]
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.0040c240
test al, al
je 0x40b90b
mov eax, dword [esp + 0x34]
cmp eax, 3
jne 0x40b544
jmp 0x40b552
cmp eax, 1
jne 0x40b91d
mov edi, 0x8000000
mov ecx, dword [esp + 0x2c]
push esi
push edi
push eax
cmp dword [ecx - 8], ebx
jne 0x40b573
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x52c4b0]
push ebx
push ebx
push edx
push eax
push ecx
jmp 0x40b58a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [0x52c4b0]
push ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edx
call dword [0x52c488]
cmp eax, ebx
mov dword [esi + 0x64], eax
je 0x40b92b
mov ecx, dword [esp + 0x34]
cmp ecx, 3
jne 0x40b5c0
mov ecx, dword [esp + 0x20]
push esi
push 0x84400000
push 0x50f570
push ebx
push ebx
push ecx
push ebx
push eax
call dword [0x52c48c]
jmp 0x40b5dc
cmp ecx, 1
jne 0x40b5df
mov edx, dword [esp + 0x20]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocStringLen
push edx
push eax
call dword [0x52c490]
mov dword [esi + 0x60], eax
cmp dword [esi + 0x60], ebx
je 0x40b9a5
mov eax, dword [esp + 0x34]
cmp eax, 3
jne 0x40b797
mov eax, dword [esi + 0x60]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [0x52c498]
test eax, eax
je 0x40ba1a
mov ecx, esi
call fcn.0040bff0
test al, al
jne 0x40ba82
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 [0x52c494]
test eax, eax
je 0x40badb
mov eax, dword [esp + 0x40]
cmp eax, 0xc8
je 0x40b73f
cmp eax, 0x197
je 0x40b669
cmp eax, 0x191
jne 0x40b685
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.0040c1b0
test al, al
je 0x40bbf6
jmp 0x40b5e8
cmp eax, 0x12e
je 0x40b697
cmp eax, 0x12d
jne 0x40bb3e
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 [0x52c494]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push eax
call fcn.004d86a9
push 0x88d7
lea ecx, [esp + 0x14]
call fcn.004d95f9
mov ecx, dword [esp + 0x14]
push ecx
push 0x50f1c0
lea ecx, [esp + 0x18]
call fcn.004d2835
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0x576
call fcn.004d7a8e
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 5
call fcn.004d8520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004d8520
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004d8520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004d8520
jmp 0x40b4c0
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 [0x52c494]
test eax, eax
jne 0x40b761
mov dword [esp + 0x28], ebx
mov eax, dword [0x52c4bc]
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.0040c6b0
test al, al
je 0x40bb35
jmp 0x40b7d3
cmp eax, 1
jne 0x40b7d3
mov ecx, dword [0x52c4bc]
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.0040c6b0
test al, al
je 0x40bc4e
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 [0x52c4a0]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x60], ebx
mov ecx, dword [0x52c4bc]
mov byte [esp + 0x164], 5
mov eax, dword [ecx + edx*4]
lea ecx, [esp + 0x24]
mov byte [eax + 0x310], 1
call fcn.004d8520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004d8520
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004d8520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004d8520
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004d8520
mov ecx, dword [esp + 0x18]
mov eax, dword [0x52c4c0]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x40b44b
mov dword [esi + 0x74], 1
mov byte [esi + 0x70], bl
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004d8520
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 [0x52a0ac]
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.0040c020
add ebp, 0x104
lea edi, [esi + 0x7c]
push ebp
push 0x50f1c0
mov ecx, edi
call fcn.004d2835
mov eax, dword [esp + 0x28]
mov ecx, edi
push eax
push 0x50f6a8
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
mov esi, eax
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x28]
jmp 0x40bc91
mov ecx, dword [esp + 0x14]
push ecx
push 0x50f1c0
lea ecx, [esi + 0x7c]
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
mov esi, eax
jmp 0x40bc52
mov edx, dword [0x52a0ac]
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.0040c020
lea edi, [esi + 0x7c]
push 0x88db
mov ecx, edi
call fcn.004d95f9
mov ecx, dword [esp + 0x1c]
push ecx
push 0x50f1c0
mov ecx, edi
call fcn.004d2835
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
push 0x50f6a8
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004d8520
jmp 0x40bc52
mov eax, dword [0x52a0ac]
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.0040c020
lea edi, [esi + 0x7c]
push 0x88de
mov ecx, edi
call fcn.004d95f9
push ebp
push 0x50f1c0
mov ecx, edi
call fcn.004d2835
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
push 0x50f6a8
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004d8520
jmp 0x40bc52
mov eax, dword [0x52a0ac]
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.0040c020
lea edi, [esi + 0x7c]
push 0x88df
mov ecx, edi
call fcn.004d95f9
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
push 0x50f1c0
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004d8520
jmp 0x40bc52
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 5
call fcn.004d8520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004d8520
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004d8520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004d8520
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004d8520
jmp 0x40b875
mov eax, dword [0x52a0ac]
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.0040c020
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x7c]
push edx
push 0x50f1c0
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004d8520
jmp 0x40bc52
mov esi, dword [esp + 0x3c]
jmp 0x40bc52
push eax
lea eax, [esp + 0x14]
push 0x50f6a4
push eax
call fcn.004d2ea8
add esp, 0xc
lea edi, [esi + 0x7c]
mov ecx, edi
push 0x88dd
call fcn.004d95f9
push ebp
push 0x50f1c0
mov ecx, edi
call fcn.004d2835
mov ecx, dword [esp + 0x10]
push ecx
push 0x50f6a8
mov ecx, edi
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x164], 5
call fcn.004d8520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004d8520
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004d8520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 1
call fcn.004d8520
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004d8520
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004d8520
mov eax, esi
jmp 0x40b88b
mov edx, dword [0x52a0ac]
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.0040c020
mov ecx, dword [esp + 0x18]
push ecx
push 0x50f1c0
lea ecx, [esi + 0x7c]
call fcn.004d2835
mov ecx, esi
call fcn.0040c000
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x164], 6
call fcn.004d8520
jmp 0x40bc52
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 5
call fcn.004d8520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 4
call fcn.004d8520
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 3
call fcn.004d8520
mov byte [esp + 0x164], 1
lea ecx, [esp + 0x1c]
call fcn.004d8520
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.004d8520
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004d8520
mov eax, esi
jmp 0x40b88b