Function at 0x436420
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
mov eax, 0x187c
call fcn.0043fbd0
mov eax, dword [0x465100]
xor eax, esp
mov dword [esp + 0x1878], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x3fe
mov esi, ecx
lea edx, [esp + 0x86]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x8c], cx
call fcn.0043f7e0
push 0x1400
lea eax, [esp + 0x490]
push ebx
push eax
call fcn.0043f7e0
push 0x38
lea ecx, [esp + 0x58]
push ebx
push ecx
call fcn.0043f7e0
lea eax, [esp + 0x4a4]
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x14a4]
mov dword [esp + 0x90], edx
lea ecx, [esp + 0xca4]
lea eax, [esp + 0x10a4]
mov dword [esp + 0x80], ecx
lea edx, [esp + 0xa4]
mov dword [esp + 0x88], eax
mov eax, 0x200
mov dword [esp + 0x60], edx
mov edx, dword [esi]
lea ecx, [esp + 0x8a4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x94], eax
mov eax, dword [edx + 0xc]
add esp, 0x24
mov ecx, esi
mov dword [esp + 0x38], 0x3c
call eax
mov eax, dword [0x49cc7c]
cmp eax, ebx
jne 0x43655e
call fcn.004371d0
mov ecx, dword [0x49c000]
push str.WinHttpCrackUrl
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49cc7c], eax
cmp eax, ebx
je 0x43656c
lea edx, [esp + 0x38]
push edx
push closesocket
push ebx
push edi
call eax
mov eax, dword [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436573
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x436599
mov eax, dword [esp + 0x64]
push eax
push edi
call fcn.0043e323
add esp, 8
mov dword [esp + 0x64], eax
call fcn.00437450
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x43691f
mov eax, dword [0x49cca4]
cmp eax, ebx
jne 0x4365d5
call fcn.004371d0
mov ecx, dword [0x49c000]
push str.WinHttpSetStatusCallback
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49cca4], eax
cmp eax, ebx
je 0x4365e0
push ebx
push 0xffffffffffffffff
push 0x436280
push edi
call eax
mov edx, dword [esp + 0x10]
cmp edx, ebx
je 0x43664a
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4365f0
sub eax, edi
sar eax, 1
je 0x43664a
mov eax, dword [0x49cca0]
mov dword [esp + 0x74], 3
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
cmp eax, ebx
jne 0x43663a
call fcn.004371d0
mov edx, dword [0x49c000]
push str.WinHttpSetOption
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49cca0], eax
cmp eax, ebx
je 0x43664a
mov edx, dword [esp + 0x14]
push 0xc
lea ecx, [esp + 0x78]
push ecx
push 0x26
push edx
call eax
mov eax, dword [esp + 0x48]
movzx edi, word [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [0x49cc80]
mov dword [esp + 0x20], 4
cmp eax, ebx
jne 0x436688
call fcn.004371d0
mov ecx, dword [0x49c000]
push str.WinHttpConnect
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49cc80], eax
cmp eax, ebx
je 0x4366a5
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push edi
push edx
push ecx
call eax
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, ebx
jne 0x4366fa
mov eax, dword [0x49cc80]
mov edx, dword [esp + 0x48]
movzx edi, word [esp + 0x50]
mov dword [esp + 0x10], edx
cmp eax, ebx
jne 0x4366de
call fcn.004371d0
mov eax, dword [0x49c000]
push str.WinHttpConnect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49cc80], eax
cmp eax, ebx
jne 0x4366de
mov dword [esp + 0x1c], ebx
jmp 0x43691f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebx
push edi
push ecx
push edx
call eax
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x43691f
mov edi, eax
mov eax, dword [esp + 0x64]
push eax
push edi
call fcn.00437270
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x43672a
mov ecx, dword [esp + 0x64]
push ecx
push edi
call fcn.00437270
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x43691f
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x34], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x38], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x34]
lea edi, [esi + 0x30]
push edi
push eax
push edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x38]
push eax
push ecx
push edx
call fcn.00436000
add esp, 0x18
test eax, eax
jne 0x436908
mov eax, dword [edi]
cmp eax, ebx
je 0x436908
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push eax
call edi
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x20]
push 4
lea eax, [esp + 0x10]
push eax
push 0x2d
push edx
call fcn.00437510
add esp, 0x10
test eax, eax
jne 0x4367eb
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], ebx
jmp 0x436925
mov eax, dword [esp + 0xc]
call fcn.00436110
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x436925
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x20]
push edx
call fcn.004372c0
add esp, 4
test eax, eax
jne 0x43683a
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004372c0
add esp, 4
test eax, eax
jne 0x43683a
mov edx, dword [esp + 0xc]
add edx, 4
push edx
jmp 0x436919
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 4
push eax
call edi
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
push 0xea60
push ebx
lea eax, [esp + 0x38]
push eax
push 2
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x436925
mov eax, dword [esp + 0xc]
call fcn.00436110
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x436925
mov eax, dword [esp + 0xc]
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x20]
lea edx, [esp + 0x2c]
push edx
push ebx
push 0x20000013
push ecx
call fcn.00437350
add esp, 0x18
cmp dword [esp + 0x24], 0xc8
je 0x4368c8
mov edx, dword [esp + 0xc]
add edx, 4
push edx
mov dword [esp + 0x1c], ebx
call edi
jmp 0x43691f
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [eax + 0x20]
push 0x20000005
push ecx
call fcn.00437350
add esp, 0x18
test eax, eax
je 0x4368fc
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0xc]
add eax, 4
push eax
call edi
jmp 0x436925
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x44]
mov dword [esi + 0x40], ebx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esi + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edi
mov dword [esi + 8], edx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x436979
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x436979
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x436979
mov esi, dword [esp + 0x14]
call fcn.00436140
mov esi, dword [esp + 0x14]
call fcn.00435f90
mov ecx, dword [esp + 0x1884]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8