Function at 0x4b5fff
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1884
call fcn.004d5b10
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x1880], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
lea edi, [esp + 0x38]
push 0x3fe
mov dword [esp + 0x38], esi
stosd dword es:[edi], eax
lea eax, [esp + 0x8e]
push esi
push eax
mov ebx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x94], si
call fcn.004be320
push 0x1400
lea eax, [esp + 0x498]
push esi
push eax
call fcn.004be320
push 0x38
lea eax, [esp + 0x60]
push esi
push eax
call fcn.004be320
lea eax, [esp + 0x14ac]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x4ac]
mov dword [esp + 0x74], eax
lea eax, [esp + 0xcac]
mov dword [esp + 0x88], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10ac]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x8ac]
mov dword [esp + 0x80], eax
mov eax, 0x200
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 [ebx]
add esp, 0x24
mov ecx, ebx
mov dword [esp + 0x40], 0x3c
call dword [eax + 0xc]
mov eax, dword [0x515c40]
cmp eax, esi
jne 0x4b6145
call fcn.004b6a6f
push str.WinHttpCrackUrl
push dword [0x515610]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x515c40], eax
je 0x4b6156
lea ecx, [esp + 0x40]
push ecx
push SysReAllocString
push esi
push dword [esp + 0x20]
call eax
push dword [esp + 0x6c]
push dword [esp + 0x18]
call fcn.004b9c1e
pop ecx
pop ecx
mov dword [esp + 0x6c], eax
call fcn.004b6c8e
mov edi, eax
cmp edi, esi
mov dword [esp + 0x3c], edi
je 0x4b62d5
push edi
call fcn.004b6d32
cmp dword [esp + 0x20], esi
pop ecx
je 0x4b61c9
push dword [esp + 0x1c]
call fcn.004c65dc
test eax, eax
pop ecx
jbe 0x4b61c9
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
push 0xc
lea eax, [esp + 0x80]
push eax
push 0x26
push edi
mov dword [esp + 0x8c], 3
mov dword [esp + 0x94], esi
call fcn.004b6cf6
add esp, 0x10
push dword [esp + 0x58]
mov dword [esp + 0x28], 4
push dword [esp + 0x54]
push edi
call fcn.004b6af9
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x4b6207
push dword [esp + 0x58]
push dword [esp + 0x54]
push edi
call fcn.004b6af9
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x4b62d5
push dword [esp + 0x6c]
push dword [esp + 0x1c]
call fcn.004b6b33
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x4b6239
push dword [esp + 0x6c]
push dword [esp + 0x1c]
call fcn.004b6b33
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
je 0x4b62d5
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
mov dword [ebx + 0x34], eax
call edi
push esi
push esi
push esi
push esi
mov dword [ebx + 0x38], eax
call edi
lea edi, [ebx + 0x30]
push edi
push eax
push dword [ebx + 0x38]
mov dword [ebx + 0x3c], eax
push dword [ebx + 0x34]
push dword [esp + 0x24]
call fcn.004b5d1e
add esp, 0x14
test eax, eax
jne 0x4b6436
mov eax, dword [edi]
cmp eax, esi
je 0x4b6436
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
mov dword [esp + 0x14], eax
call edi
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
call edi
push 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
push 0x2d
push dword [eax + 0x20]
call fcn.004b6cf6
add esp, 0x10
test eax, eax
jne 0x4b62dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b631e
mov esi, dword [esp + 0x10]
call fcn.004b5ded
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
call fcn.004b6b7a
test eax, eax
pop ecx
jne 0x4b6368
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
call fcn.004b6b7a
test eax, eax
pop ecx
jne 0x4b6368
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea edi, [ebx + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
push edi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], esi
je 0x4b634d
push dword [esp + 0x10]
call fcn.004b5cf3
pop ecx
mov ecx, dword [esp + 0x188c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b84de
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 4
push eax
call edi
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x3c]
push 0xea60
mov dword [esp + 0x3c], eax
push 0
lea eax, [esp + 0x3c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4b631c
mov esi, dword [esp + 0x10]
call fcn.004b5ded
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor esi, esi
cmp dword [eax + 0x30], esi
push esi
sete cl
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
push ecx
push 0x20000013
push dword [eax + 0x20]
call fcn.004b6bb7
add esp, 0x14
cmp dword [esp + 0x28], 0xc8
je 0x4b63f5
mov eax, dword [esp + 0x10]
add eax, 4
push eax
mov dword [esp + 0x24], esi
call edi
jmp 0x4b6316
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
push 0x20000005
push dword [eax + 0x20]
call fcn.004b6bb7
add esp, 0x14
test eax, eax
je 0x4b6427
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call edi
jmp 0x4b631c
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4b62d5