Function at 0x438fd0
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.00442810
mov eax, dword [0x468100]
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.00442420
push 0x1400
lea eax, [esp + 0x490]
push ebx
push eax
call fcn.00442420
push 0x38
lea ecx, [esp + 0x58]
push ebx
push ecx
call fcn.00442420
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 [0x49fd5c]
cmp eax, ebx
jne 0x43910e
call fcn.00439d70
mov ecx, dword [0x49f080]
push str.WinHttpCrackUrl
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49fd5c], eax
cmp eax, ebx
je 0x43911c
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 0x439123
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x439149
mov eax, dword [esp + 0x64]
push eax
push edi
call fcn.00440f66
add esp, 8
mov dword [esp + 0x64], eax
call fcn.00439ff0
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x4394cf
mov eax, dword [0x49fd84]
cmp eax, ebx
jne 0x439185
call fcn.00439d70
mov ecx, dword [0x49f080]
push str.WinHttpSetStatusCallback
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49fd84], eax
cmp eax, ebx
je 0x439190
push ebx
push 0xffffffffffffffff
push 0x438e30
push edi
call eax
mov edx, dword [esp + 0x10]
cmp edx, ebx
je 0x4391fa
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4391a0
sub eax, edi
sar eax, 1
je 0x4391fa
mov eax, dword [0x49fd80]
mov dword [esp + 0x74], 3
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
cmp eax, ebx
jne 0x4391ea
call fcn.00439d70
mov edx, dword [0x49f080]
push str.WinHttpSetOption
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49fd80], eax
cmp eax, ebx
je 0x4391fa
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 [0x49fd60]
mov dword [esp + 0x20], 4
cmp eax, ebx
jne 0x439238
call fcn.00439d70
mov ecx, dword [0x49f080]
push str.WinHttpConnect
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49fd60], eax
cmp eax, ebx
je 0x439255
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 0x4392aa
mov eax, dword [0x49fd60]
mov edx, dword [esp + 0x48]
movzx edi, word [esp + 0x50]
mov dword [esp + 0x10], edx
cmp eax, ebx
jne 0x43928e
call fcn.00439d70
mov eax, dword [0x49f080]
push str.WinHttpConnect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49fd60], eax
cmp eax, ebx
jne 0x43928e
mov dword [esp + 0x1c], ebx
jmp 0x4394cf
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 0x4394cf
mov edi, eax
mov eax, dword [esp + 0x64]
push eax
push edi
call fcn.00439e10
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4392da
mov ecx, dword [esp + 0x64]
push ecx
push edi
call fcn.00439e10
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4394cf
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.00438bb0
add esp, 0x18
test eax, eax
jne 0x4394b8
mov eax, dword [edi]
cmp eax, ebx
je 0x4394b8
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.0043a0b0
add esp, 0x10
test eax, eax
jne 0x43939b
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], ebx
jmp 0x4394d5
mov eax, dword [esp + 0xc]
call fcn.00438cc0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4394d5
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00439e60
add esp, 4
test eax, eax
jne 0x4393ea
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00439e60
add esp, 4
test eax, eax
jne 0x4393ea
mov edx, dword [esp + 0xc]
add edx, 4
push edx
jmp 0x4394c9
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 0x4394d5
mov eax, dword [esp + 0xc]
call fcn.00438cc0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4394d5
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.00439ef0
add esp, 0x18
cmp dword [esp + 0x24], 0xc8
je 0x439478
mov edx, dword [esp + 0xc]
add edx, 4
push edx
mov dword [esp + 0x1c], ebx
call edi
jmp 0x4394cf
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.00439ef0
add esp, 0x18
test eax, eax
je 0x4394ac
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0xc]
add eax, 4
push eax
call edi
jmp 0x4394d5
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 0x439529
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x439529
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x439529
mov esi, dword [esp + 0x14]
call fcn.00438cf0
mov esi, dword [esp + 0x14]
call fcn.00438b40
mov ecx, dword [esp + 0x1884]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 8