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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e263b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x189c
call fcn.004d5b10
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x1898], eax
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x18b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3fe
mov edi, ecx
lea ecx, [esp + 0xaa]
push ebx
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0xb0], bx
call fcn.004be320
push 0x1400
lea edx, [esp + 0x4b4]
push ebx
push edx
call fcn.004be320
push 0x38
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.004be320
lea eax, [esp + 0xcc8]
mov dword [esp + 0x88], eax
lea edx, [esp + 0x4c8]
mov dword [esp + 0x74], edx
lea ecx, [esp + 0x14c8]
lea eax, [esp + 0x8c8]
mov dword [esp + 0x98], ecx
lea edx, [esp + 0x10c8]
mov dword [esp + 0x80], eax
mov eax, 0x200
lea ecx, [esp + 0xc8]
mov dword [esp + 0x90], edx
mov edx, dword [edi]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x9c], eax
mov eax, dword [edx + 0xc]
add esp, 0x24
mov ecx, edi
mov dword [esp + 0x40], 0x3c
call eax
mov eax, dword [0x515b58]
cmp eax, ebx
jne 0x402c62
call fcn.00403700
mov ecx, dword [0x5154b4]
push str.WinHttpCrackUrl
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x515b58], eax
je 0x402c6c
lea edx, [esp + 0x40]
push edx
push ebx
push ebx
push esi
call eax
mov edx, dword [esp + 0x6c]
mov eax, edx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402c90
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x90]
call fcn.004024d0
mov dword [esp + 0x18b8], ebx
mov edx, dword [esp + 0x74]
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402cc0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x90]
call fcn.00403530
call fcn.004039f0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x40301e
mov eax, dword [0x515b88]
cmp eax, ebx
jne 0x402d18
call fcn.00403700
mov eax, dword [0x5154b4]
push str.WinHttpSetStatusCallback
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x515b88], eax
je 0x402d23
push ebx
push 0xffffffffffffffff
push 0x4029d0
push esi
call eax
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x402d77
mov eax, edx
lea ecx, [eax + 2]
mov dword [esp + 0x1c], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402d34
sub eax, dword [esp + 0x1c]
sar eax, 1
je 0x402d77
mov dword [esp + 0x80], edx
push 0xc
lea edx, [esp + 0x80]
push edx
push 0x26
push esi
mov dword [esp + 0x8c], 3
mov dword [esp + 0x94], ebx
call fcn.00403af0
add esp, 0x10
jmp 0x402d81
mov eax, dword [esp + 0x18]
push esi
call fcn.00403430
movzx eax, word [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [0x515b5c]
cmp eax, ebx
mov dword [esp + 0x34], 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ecx
jne 0x402dcb
call fcn.00403700
mov edx, dword [0x5154b4]
push str.WinHttpConnect
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x515b5c], eax
je 0x402de7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebx
push ecx
push edx
push esi
call eax
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x402e08
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push esi
call fcn.004037a0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40301e
mov esi, eax
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x402e20
lea eax, [esp + 0x8c]
push eax
push esi
call fcn.004037e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402e5c
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x402e48
lea eax, [esp + 0x8c]
push eax
push esi
call fcn.004037e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40301e
lea eax, [edi + 0x40]
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 + 0x34], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x38], eax
call esi
mov edx, dword [edi + 0x38]
lea esi, [edi + 0x30]
push esi
push eax
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x34]
push edx
push eax
push ebx
call fcn.004026a0
add esp, 0x14
test eax, eax
jne 0x403014
mov eax, dword [esi]
test eax, eax
je 0x403014
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x40]
push eax
call ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
push eax
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x2d
push eax
call fcn.00403af0
add esp, 0x10
test eax, eax
je 0x403024
mov eax, dword [esp + 0x10]
call fcn.004027b0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00403830
add esp, 4
test eax, eax
jne 0x402f4c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00403830
add esp, 4
test eax, eax
jne 0x402f4c
mov edx, dword [esp + 0x10]
add edx, 4
push edx
call ebx
jmp 0x403024
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call ebx
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x3c]
push 0xea60
push 0
lea eax, [esp + 0x40]
push eax
push 2
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x403024
mov eax, dword [esp + 0x10]
call fcn.004027b0
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor esi, esi
cmp dword [eax + 0x30], esi
push esi
sete cl
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x30], esi
mov edx, dword [eax + 0x20]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x30]
push ecx
push 0x20000013
push edx
call fcn.004038b0
add esp, 0x14
cmp dword [esp + 0x28], 0xc8
je 0x402fd5
mov eax, dword [esp + 0x10]
add eax, 4
push eax
mov dword [esp + 0x24], esi
call ebx
jmp 0x403024
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x38], esi
mov edx, dword [ecx + 0x20]
push 0x20000005
push edx
call fcn.004038b0
add esp, 0x14
test eax, eax
je 0x403008
mov eax, dword [esp + 0x30]
mov dword [edi + 0x28], eax
mov ecx, dword [esp + 0x10]
add ecx, 4
push ecx
call ebx
jmp 0x403024
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push esi
mov dword [edi + 8], edx
mov dword [edi + 4], eax
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40307c
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403074
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x403074
mov esi, dword [esp + 0x14]
call fcn.004027e0
mov esi, dword [esp + 0x14]
call fcn.00402610
mov dword [esp + 0x10], 0
cmp dword [esp + 0xa0], 8
jb 0x403096
mov eax, dword [esp + 0x8c]
push eax
call fcn.004b84d9
add esp, 4
mov eax, dword [esp + 0x20]
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.004b84de
mov esp, ebp
pop ebp
ret 8