Function at 0x40d9fb
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
lea edx, [esp + 0x68]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xc]
call fcn.0042d7bf
test al, al
je 0x40dda1
mov edx, dword [edi + 0x10]
add edx, 0x60
xor esi, esi
mov eax, dword [edx]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x74], edx
inc esi
xor ebp, ebp
lea edx, [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], eax
call fcn.0041c861
push ecx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x74]
call fcn.00411c73
test eax, eax
je 0x40da72
mov edx, dword [esp + 0x20]
mov ecx, eax
call fcn.004339f4
mov dword [esp + 0x18], eax
jmp 0x40da76
mov dword [esp + 0x18], ebp
mov eax, dword [edi + 0x14]
xor ecx, ecx
cmp dword [eax + 4], esi
setne cl
cmp byte [esp + 0x86], 2
mov dword [esp + 0x1c], ecx
jne 0x40da96
or ecx, 4
mov dword [esp + 0x1c], ecx
push 0x1000
lea ecx, [esp + 0x5c]
call fcn.0040d2d1
push 2
push 0x407848
push dword [esp + 0x64]
mov ebx, ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
call fcn.0040d326
test eax, eax
jne 0x40dadc
lea ecx, [esp + 0x58]
call fcn.0040d3de
jmp 0x40dbd8
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
push 6
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x5c]
lea eax, [esp + 0x5c]
lea edx, [esp + 0x3c]
pop ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], eax
call fcn.0041c861
push ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
call fcn.00411c73
test eax, eax
je 0x40db44
cmp dword [esp + 0x14], ebx
jle 0x40db44
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x50]
push eax
push 0xf
lea eax, [esp + 0x48]
push eax
call fcn.00411b4f
test al, al
je 0x40dbd8
mov esi, dword [esp + 0x4c]
push 4
lea edx, [esp + 0x3c]
pop ecx
call fcn.0041c861
push ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
call fcn.00411c73
test eax, eax
je 0x40db8c
cmp dword [esp + 0x14], ebx
jle 0x40db8c
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x50]
push eax
push 0xc
lea eax, [esp + 0x48]
push eax
call fcn.00411b4f
test al, al
je 0x40dbd8
mov esi, dword [esp + 0x4c]
test byte [esp + 0x48], 1
je 0x40db97
mov ebx, esi
jmp 0x40dbb2
lea eax, [esp + 0x68]
push eax
push ebp
push ebp
push ebp
lea ecx, [esp + 0x58]
call fcn.00411863
test al, al
je 0x40dbd8
mov ebx, dword [esp + 0x74]
add ebx, esi
lea eax, [esp + 0x68]
push eax
push ebp
push ebp
push 7
lea ecx, [esp + 0x58]
call fcn.00411863
test al, al
jne 0x40dbcc
mov ebx, ebp
jmp 0x40dbd8
mov ebp, esi
sub ebp, ebx
add ebp, dword [esp + 0x70]
mov dword [esp + 0x20], ebp
mov ebp, dword [edi + 0x10]
xor esi, esi
push dword [esi + 0x409294]
and dword [esp + 0x3c], 0
push dword [esp + 0x88]
and dword [esp + 0x44], 0
push dword [esp + 0x80]
and dword [esp + 0x4c], 0
push dword [esp + 0x24]
lea ecx, [esp + 0x48]
call fcn.00417e3e
test al, al
je 0x40dc4e
cmp dword [ebp + 0x74], 0
jbe 0x40dc1c
mov edx, dword [ebp + 0x70]
jmp 0x40dc1e
xor edx, edx
push dword [esp + 0x1c]
mov eax, dword [edi + 0x14]
push dword [ebp + 0x74]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [esp + 0x2c]
xor eax, eax
push edx
test edx, edx
cmovg eax, ebx
push eax
push ecx
push dword [esp + 0x94]
lea ecx, [esp + 0x54]
call fcn.00417f12
test al, al
jne 0x40dc68
lea ecx, [esp + 0x38]
call fcn.00417ecd
add esi, 4
cmp esi, 8
jb 0x40dbdd
jmp 0x40dd7d
mov ebp, dword [esp + 0x40]
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x20000013
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 1
jne 0x40dca4
mov ecx, dword [esp + 0x20]
lea eax, [ecx - 0x64]
cmp eax, 0x195
jbe 0x40dca6
mov ecx, ebx
cmp ecx, 0xc8
jne 0x40dd74
push 0xa
lea edx, [esp + 0x28]
pop ecx
call fcn.0041c861
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x28], ebx
call fcn.004183ef
mov esi, eax
test esi, esi
je 0x40dd50
mov edx, dword [esp + 0x1c]
push ecx
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00433c1d
mov ecx, esi
mov ebx, eax
call fcn.00430e28
cmp ebx, 0xffffffff
je 0x40dd33
xor esi, esi
test ebx, ebx
je 0x40dd28
mov eax, dword [esp + 0x14]
cmp dword [eax + esi*4], 0
je 0x40dd23
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
push eax
mov edx, dword [edx + esi*4]
call fcn.00426f05
inc esi
cmp esi, ebx
jb 0x40dd03
mov ecx, dword [esp + 0x14]
mov edx, ebx
call fcn.00430e3c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
mov ecx, ebp
call fcn.004183ef
mov esi, eax
test esi, esi
jne 0x40dcdd
xor ebx, ebx
test byte [edi], 1
je 0x40dd65
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.0040dda9
test al, al
je 0x40dd74
mov dword [edi + 8], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea ecx, [esp + 0x38]
call fcn.00417ecd
mov ecx, dword [esp + 0x18]
call fcn.00430e28
mov ecx, dword [esp + 0x78]
call fcn.00430e28
mov ecx, dword [esp + 0x7c]
call fcn.00430e28
mov ecx, dword [esp + 0x58]
call fcn.00430e28
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret