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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e24db
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x189c
call fcn.004d5a20
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.004be240
push 0x1400
lea edx, [esp + 0x4b4]
push ebx
push edx
call fcn.004be240
push 0x38
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.004be240
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 [0x515b78]
cmp eax, ebx
jne 0x402cb2
call fcn.00403750
mov ecx, dword [0x5154d4]
push str.WinHttpCrackUrl
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x515b78], eax
je 0x402cbc
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 0x402ce0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x90]
call fcn.00402530
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 0x402d10
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x90]
call fcn.00403580
call fcn.00403a40
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x40306e
mov eax, dword [0x515ba8]
cmp eax, ebx
jne 0x402d68
call fcn.00403750
mov eax, dword [0x5154d4]
push str.WinHttpSetStatusCallback
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x515ba8], eax
je 0x402d73
push ebx
push 0xffffffffffffffff
push 0x402a20
push esi
call eax
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x402dc7
mov eax, edx
lea ecx, [eax + 2]
mov dword [esp + 0x1c], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402d84
sub eax, dword [esp + 0x1c]
sar eax, 1
je 0x402dc7
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.00403b40
add esp, 0x10
jmp 0x402dd1
mov eax, dword [esp + 0x18]
push esi
call fcn.00403480
movzx eax, word [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [0x515b7c]
cmp eax, ebx
mov dword [esp + 0x34], 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ecx
jne 0x402e1b
call fcn.00403750
mov edx, dword [0x5154d4]
push str.WinHttpConnect
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x515b7c], eax
je 0x402e37
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 0x402e58
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push esi
call fcn.004037f0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40306e
mov esi, eax
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x402e70
lea eax, [esp + 0x8c]
push eax
push esi
call fcn.00403830
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402eac
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x402e98
lea eax, [esp + 0x8c]
push eax
push esi
call fcn.00403830
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40306e
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.004026f0
add esp, 0x14
test eax, eax
jne 0x403064
mov eax, dword [esi]
test eax, eax
je 0x403064
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.00403b40
add esp, 0x10
test eax, eax
je 0x403074
mov eax, dword [esp + 0x10]
call fcn.00402800
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00403880
add esp, 4
test eax, eax
jne 0x402f9c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00403880
add esp, 4
test eax, eax
jne 0x402f9c
mov edx, dword [esp + 0x10]
add edx, 4
push edx
call ebx
jmp 0x403074
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 0x403074
mov eax, dword [esp + 0x10]
call fcn.00402800
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.00403900
add esp, 0x14
cmp dword [esp + 0x28], 0xc8
je 0x403025
mov eax, dword [esp + 0x10]
add eax, 4
push eax
mov dword [esp + 0x24], esi
call ebx
jmp 0x403074
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.00403900
add esp, 0x14
test eax, eax
je 0x403058
mov eax, dword [esp + 0x30]
mov dword [edi + 0x28], eax
mov ecx, dword [esp + 0x10]
add ecx, 4
push ecx
call ebx
jmp 0x403074
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 0x4030cc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4030c4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4030c4
mov esi, dword [esp + 0x14]
call fcn.00402830
mov esi, dword [esp + 0x14]
call fcn.00402660
mov dword [esp + 0x10], 0
cmp dword [esp + 0xa0], 8
jb 0x4030e6
mov eax, dword [esp + 0x8c]
push eax
call fcn.004b83e9
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.004b83ee
mov esp, ebp
pop ebp
ret 8