Function at 0x40ed90
Capabilities:
Check http status code
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465d1b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x189c
call fcn.0045f290
mov eax, dword [0x47f5dc]
xor eax, esp
mov dword [esp + 0x1898], eax
push ebx
push esi
push edi
mov eax, dword [0x47f5dc]
xor eax, esp
push eax
lea eax, [esp + 0x18b0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
xor eax, eax
push 0x3fe
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov word [esp + 0xac], ax
lea eax, [esp + 0xae]
push eax
call fcn.0044e8d0
add esp, 0xc
lea eax, [esp + 0x4a4]
push 0x1400
push 0
push eax
call fcn.0044e8d0
add esp, 0xc
lea eax, [esp + 0x3c]
push 0x38
push 0
push eax
call fcn.0044e8d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [esp + 0x14b0]
mov dword [esp + 0x78], eax
add esp, 0xc
lea eax, [esp + 0x4a4]
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x48], eax
lea eax, [esp + 0xca4]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10a4]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x8a4]
mov dword [esp + 0x54], eax
mov eax, dword [0x4820d0]
mov dword [esp + 0x58], 0x200
mov dword [esp + 0x68], 0x200
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x4c], 0x200
mov dword [esp + 0x70], 0x200
test eax, eax
jne 0x40eee4
call fcn.00410d20
push str.WinHttpCrackUrl
push dword [0x4820e0]
call ebx
mov dword [0x4820d0], eax
test eax, eax
je 0x40eef0
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push esi
call eax
mov edx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
cmp word [edx], ax
jne 0x40ef1d
xor ecx, ecx
jmp 0x40ef31
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ef22
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.00409960
mov dword [esp + 0x18b8], 0
mov edx, dword [esp + 0x6c]
cmp word [edx], 0
jne 0x40ef58
xor ecx, ecx
jmp 0x40ef6f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ef60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.00405980
cmp dword [edi + 4], 0
jne 0x40efa9
sub esp, 0xc
call fcn.00410f60
mov esi, eax
add esp, 0xc
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40efab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_failed__err_d
jmp 0x40f114
xor esi, esi
mov eax, dword [0x4820a8]
test eax, eax
jne 0x40efcf
call fcn.00410d20
push str.WinHttpSetStatusCallback
push dword [0x4820e0]
call ebx
mov dword [0x4820a8], eax
test eax, eax
je 0x40efdb
push 0
push 0xffffffffffffffff
push 0x40eb70
push esi
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f052
mov ecx, eax
lea edx, [ecx + 2]
jmp 0x40eff0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eff0
sub ecx, edx
sar ecx, 1
je 0x40f052
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [0x4820ac]
mov dword [esp + 0x7c], 3
mov dword [esp + 0x84], 0
test eax, eax
jne 0x40f043
call fcn.00410d20
push str.WinHttpSetOption
push dword [0x4820e0]
call ebx
mov dword [0x4820ac], eax
test eax, eax
je 0x40f052
push 0xc
lea ecx, [esp + 0x80]
push ecx
push 0x26
push esi
call eax
cmp dword [edi + 8], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
jne 0x40f108
mov eax, dword [esp + 0x48]
movzx esi, word [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [0x4820cc]
test eax, eax
jne 0x40f0b0
call fcn.00410d20
push str.WinHttpConnect
push dword [0x4820e0]
call ebx
mov dword [0x4820cc], eax
test eax, eax
jne 0x40f0b0
movzx esi, word [esp + 0x50]
mov ebx, dword [esp + 0x48]
jmp 0x40f0e1
push 0
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
mov ebx, eax
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x40f1f8
mov eax, dword [0x4820cc]
movzx esi, word [esp + 0x50]
mov ebx, dword [esp + 0x48]
test eax, eax
jne 0x40f1e0
call fcn.00410d20
push str.WinHttpConnect
push dword [0x4820e0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4820cc], eax
test eax, eax
jne 0x40f1e0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpConnect_failed__err_d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040a560
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x10
lea esi, [edi + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
push esi
mov dword [edi + 4], eax
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f183
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x40f17b
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40f17b
mov ecx, dword [esp + 0x14]
call fcn.0040e9b0
mov ecx, dword [esp + 0x14]
call fcn.0040e810
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x24]
push ebx
push str.CHttpWin::Open_return:__d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040a560
add esp, 0x10
cmp dword [esp + 0xa0], 8
jb 0x40f1b8
push dword [esp + 0x8c]
call fcn.0044a77c
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x18b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1898]
xor ecx, esp
call fcn.0044a781
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
push ebx
push dword [esp + 0x20]
call eax
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x40f108
cmp dword [esp + 0xa0], 8
lea esi, [esp + 0x8c]
mov eax, dword [0x4820c8]
cmovae esi, dword [esp + 0x8c]
test eax, eax
jne 0x40f237
call fcn.00410d20
push str.WinHttpOpenRequest
push dword [0x4820e0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4820c8], eax
test eax, eax
je 0x40f254
push pe_nt_image_headers32
push 0
push 0
push str.HTTP_1.1
push esi
push 0x472b68
push ebx
call eax
mov ebx, eax
test ebx, ebx
jne 0x40f292
cmp dword [esp + 0xa0], 8
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x1c]
cmovae eax, dword [esp + 0x8c]
sub esp, 0x10
push eax
call fcn.00410dc0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x40f292
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpenRequest_failed__err_d
jmp 0x40f114
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x30], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x34], eax
call esi
mov edx, dword [edi + 0x30]
lea esi, [edi + 0x2c]
push esi
push eax
push dword [edi + 0x34]
mov ecx, ebx
mov dword [edi + 0x38], eax
call fcn.0040e880
add esp, 0xc
test eax, eax
jne 0x40f504
mov eax, dword [esi]
test eax, eax
je 0x40f504
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x3c]
push eax
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 4
push eax
mov edx, 0x2d
mov ecx, dword [ecx + 0x20]
call fcn.00411020
add esp, 8
test eax, eax
jne 0x40f35f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSetOption_failed__err_d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040a560
jmp 0x40f129
mov ecx, dword [esp + 0x10]
call fcn.0040e980
mov ecx, dword [esp + 0x10]
sub esp, 0x10
mov esi, dword [ebp + 0x14]
mov edx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x20]
push esi
call fcn.00410e10
add esp, 0x14
test eax, eax
jne 0x40f3cb
mov ecx, dword [esp + 0x10]
sub esp, 0x10
mov edx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x20]
push esi
call fcn.00410e10
add esp, 0x14
test eax, eax
jne 0x40f3cb
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSendRequest_failed__err_d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040a560
jmp 0x40f129
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 4
push eax
call esi
mov eax, dword [edi + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x38]
push 0x1d4c0
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40f42b
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CHttpWin::Open_wait_m_hRequestEvent_failed__dwLastError_d_dwWait_d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040a560
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x14
jmp 0x40f12c
mov ecx, dword [esp + 0x10]
call fcn.0040e980
mov ecx, dword [esp + 0x10]
xor eax, eax
push 0
mov edx, 0x20000013
cmp dword [ecx + 0x30], eax
mov dword [esp + 0x24], 0
sete al
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [ecx + 0x20]
call fcn.00410e60
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, 0xc8
je 0x40f4a0
cmp eax, 0xce
je 0x40f4a0
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x24]
push str.WinHttpQueryHeaders_status_code:__d__error:_d
jmp 0x40f40e
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x30]
mov edx, 0x20000005
push eax
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x20]
call fcn.00410e60
add esp, 0x10
test eax, eax
je 0x40f4ef
mov eax, dword [esp + 0x30]
push eax
push str.WinHttpQueryHeaders_file_size:_d
push 0xca
push str.HttpHttpWin.cpp
mov dword [edi + 0x24], eax
call fcn.0040a560
add esp, 0x10
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40f12c
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x3c]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateMyContext_failed__err_d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040a560
jmp 0x40f129