Function at 0x414850
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 0x49d0cb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x189c
call fcn.00486ac0
mov eax, dword [0x4cc1c0]
xor eax, esp
mov dword [esp + 0x1898], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc1c0]
xor eax, esp
push eax
lea eax, [esp + 0x18b0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
xor eax, eax
push 0x3fe
push eax
mov word [esp + 0xac], ax
lea eax, [esp + 0xae]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebx
call fcn.00466700
add esp, 0xc
lea eax, [esp + 0x4a4]
push 0x1400
push ebx
push eax
call fcn.00466700
add esp, 0xc
lea eax, [esp + 0x40]
push 0x38
push ebx
push eax
call fcn.00466700
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [esp + 0x14b0]
mov dword [esp + 0x7c], eax
add esp, 0xc
lea eax, [esp + 0x4a4]
mov dword [esp + 0x3c], 0x3c
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xca4]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x10a4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x8a4]
mov dword [esp + 0x58], eax
mov eax, dword [0x4d30e4]
mov dword [esp + 0x5c], 0x200
mov dword [esp + 0x6c], 0x200
mov dword [esp + 0x44], 0x200
mov dword [esp + 0x64], 0x200
mov dword [esp + 0x50], 0x200
mov dword [esp + 0x74], 0x200
test eax, eax
jne 0x4149ac
call fcn.004176b0
push str.WinHttpCrackUrl
push dword [0x4d1dbc]
call esi
mov dword [0x4d30e4], eax
test eax, eax
je 0x4149bb
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push dword [esp + 0x2c]
call eax
push dword [esp + 0x68]
lea ecx, [esp + 0x90]
call fcn.0040b350
mov dword [esp + 0x18b8], 0
lea ecx, [esp + 0x8c]
push dword [esp + 0x70]
call fcn.00401a60
cmp dword [edi + 4], 0
jne 0x414a10
sub esp, 0xc
call fcn.004178f0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x414a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_failed__err_d
jmp 0x414b7a
mov eax, dword [0x4d30bc]
test eax, eax
jne 0x414a34
call fcn.004176b0
push str.WinHttpSetStatusCallback
push dword [0x4d1dbc]
call esi
mov dword [0x4d30bc], eax
test eax, eax
je 0x414a43
push 0
push 0xffffffffffffffff
push 0x414640
push dword [esp + 0x28]
call eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x414aba
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a54
sub ecx, dword [esp + 0x18]
sar ecx, 1
je 0x414aba
mov eax, dword [0x4d30c0]
mov dword [esp + 0x80], 3
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 0
test eax, eax
jne 0x414aa8
call fcn.004176b0
push str.WinHttpSetOption
push dword [0x4d1dbc]
call esi
mov dword [0x4d30c0], eax
test eax, eax
je 0x414aba
push 0xc
lea ecx, [esp + 0x84]
push ecx
push 0x26
push dword [esp + 0x28]
call eax
cmp dword [edi + 8], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jne 0x414b6e
mov eax, dword [esp + 0x4c]
movzx ebx, word [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [0x4d30e0]
test eax, eax
jne 0x414b1c
call fcn.004176b0
push str.WinHttpConnect
push dword [0x4d1dbc]
call esi
mov dword [0x4d30e0], eax
test eax, eax
jne 0x414b1c
mov eax, dword [esp + 0x4c]
movzx ebx, word [esp + 0x54]
mov dword [esp + 0x20], eax
jmp 0x414b4d
push 0
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
call eax
mov ebx, eax
test ebx, ebx
jne 0x414c4a
mov eax, dword [esp + 0x4c]
movzx ebx, word [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [0x4d30e0]
test eax, eax
jne 0x414c33
call fcn.004176b0
push str.WinHttpConnect
push dword [0x4d1dbc]
call esi
mov dword [0x4d30e0], eax
test eax, eax
jne 0x414c33
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpConnect_failed__err_d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040fa10
add esp, 0x10
lea esi, [edi + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
push esi
mov dword [edi + 8], ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414be3
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
je 0x414bdb
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x414bdb
mov ecx, dword [esp + 0x1c]
call fcn.004144b0
mov ecx, dword [esp + 0x1c]
call fcn.00414310
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x28]
push esi
push str.CHttpWin::Open_return:__d
push 0xca
push str.HttpHttpWin.cpp
call fcn.0040fa10
add esp, 0x10
lea ecx, [esp + 0x8c]
call fcn.0040bf10
mov eax, esi
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.004654b1
mov esp, ebp
pop ebp
ret 0x10
push 0
push ebx
push dword [esp + 0x28]
push dword [esp + 0x28]
call eax
mov ebx, eax
test ebx, ebx
je 0x414b6e
lea ecx, [esp + 0x8c]
call fcn.0040b7e0
mov dword [esp + 0x18], eax
mov eax, dword [0x4d30dc]
test eax, eax
jne 0x414c7e
call fcn.004176b0
push str.WinHttpOpenRequest
push dword [0x4d1dbc]
call esi
mov dword [0x4d30dc], eax
test eax, eax
je 0x414ca0
push 0x100
push 0
push 0
push str.HTTP_1.1
push dword [esp + 0x28]
push 0x4b5980
push ebx
call eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x414cd3
sub esp, 0x10
lea ecx, [esp + 0x9c]
call fcn.0040b7e0
push eax
mov ecx, ebx
call fcn.00417750
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
jne 0x414cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpenRequest_failed__err_d
jmp 0x414b7a
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]
mov ecx, dword [esp + 0x20]
push esi
push eax
push dword [edi + 0x34]
mov dword [edi + 0x38], eax
call fcn.00414380
add esp, 0xc
test eax, eax
jne 0x414f24
mov eax, dword [esi]
test eax, eax
je 0x414f24
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push eax
call esi
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push 4
push eax
mov edx, 0x2d
mov ecx, dword [ecx + 0x20]
call fcn.004179b0
add esp, 8
test eax, eax
jne 0x414d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSetOption_failed__err_d
jmp 0x414b7a
mov ecx, dword [esp + 0x14]
call fcn.00414480
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov esi, dword [ebp + 0x14]
mov edx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x20]
push esi
call fcn.004177a0
add esp, 0x14
test eax, eax
jne 0x414df2
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov edx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x20]
push esi
call fcn.004177a0
add esp, 0x14
test eax, eax
jne 0x414df2
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpSendRequest_failed__err_d
jmp 0x414b7a
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 4
push eax
call esi
mov eax, dword [edi + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x38]
push 0x1d4c0
mov dword [esp + 0x80], eax
lea eax, [esp + 0x7c]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x414e4f
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.0040fa10
add esp, 0x14
jmp 0x414b8c
mov ecx, dword [esp + 0x14]
call fcn.00414480
mov ecx, dword [esp + 0x14]
xor eax, eax
push 0
mov edx, 0x20000013
cmp dword [ecx + 0x30], eax
mov dword [esp + 0x28], 0
sete al
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [ecx + 0x20]
call fcn.004177f0
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, 0xc8
je 0x414ec6
cmp eax, 0xce
je 0x414ec6
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x28], 0
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x28]
push str.WinHttpQueryHeaders_status_code:__d__error:_d
jmp 0x414e38
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x30]
mov edx, 0x20000005
push eax
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x20]
call fcn.004177f0
add esp, 0x10
test eax, eax
je 0x414f15
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.0040fa10
add esp, 0x10
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call esi
jmp 0x414b8c
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateMyContext_failed__err_d
jmp 0x414b7a