Function at 0x4b5f15
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1884
call fcn.004d5a20
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.004be240
push 0x1400
lea eax, [esp + 0x498]
push esi
push eax
call fcn.004be240
push 0x38
lea eax, [esp + 0x60]
push esi
push eax
call fcn.004be240
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 [0x515c60]
cmp eax, esi
jne 0x4b605b
call fcn.004b697f
push str.WinHttpCrackUrl
push dword [0x515630]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x515c60], eax
je 0x4b606c
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.004b9ad9
pop ecx
pop ecx
mov dword [esp + 0x6c], eax
call fcn.004b6b9e
mov edi, eax
cmp edi, esi
mov dword [esp + 0x3c], edi
je 0x4b61eb
push edi
call fcn.004b6c42
cmp dword [esp + 0x20], esi
pop ecx
je 0x4b60df
push dword [esp + 0x1c]
call fcn.004c64fc
test eax, eax
pop ecx
jbe 0x4b60df
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.004b6c06
add esp, 0x10
push dword [esp + 0x58]
mov dword [esp + 0x28], 4
push dword [esp + 0x54]
push edi
call fcn.004b6a09
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x4b611d
push dword [esp + 0x58]
push dword [esp + 0x54]
push edi
call fcn.004b6a09
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x4b61eb
push dword [esp + 0x6c]
push dword [esp + 0x1c]
call fcn.004b6a43
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x4b614f
push dword [esp + 0x6c]
push dword [esp + 0x1c]
call fcn.004b6a43
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
je 0x4b61eb
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.004b5c34
add esp, 0x14
test eax, eax
jne 0x4b634c
mov eax, dword [edi]
cmp eax, esi
je 0x4b634c
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.004b6c06
add esp, 0x10
test eax, eax
jne 0x4b61f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b6234
mov esi, dword [esp + 0x10]
call fcn.004b5d03
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
call fcn.004b6a8a
test eax, eax
pop ecx
jne 0x4b627e
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
call fcn.004b6a8a
test eax, eax
pop ecx
jne 0x4b627e
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 0x4b6263
push dword [esp + 0x10]
call fcn.004b5c09
pop ecx
mov ecx, dword [esp + 0x188c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b83ee
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 0x4b6232
mov esi, dword [esp + 0x10]
call fcn.004b5d03
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.004b6ac7
add esp, 0x14
cmp dword [esp + 0x28], 0xc8
je 0x4b630b
mov eax, dword [esp + 0x10]
add eax, 4
push eax
mov dword [esp + 0x24], esi
call edi
jmp 0x4b622c
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.004b6ac7
add esp, 0x14
test eax, eax
je 0x4b633d
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call edi
jmp 0x4b6232
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4b61eb