Function at 0x1004a422
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1884
call fcn.10072dc0
mov eax, dword [0x1009d600]
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 + 0x30], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x94], si
call fcn.10054f10
push 0x1400
lea eax, [esp + 0x498]
push esi
push eax
call fcn.10054f10
push 0x38
lea eax, [esp + 0x60]
push esi
push eax
call fcn.10054f10
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 [0x100a1f5c]
cmp eax, esi
jne 0x1004a568
call fcn.1004adb7
push str.WinHttpCrackUrl
push dword [0x100a1dd8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x100a1f5c], eax
je 0x1004a579
lea ecx, [esp + 0x40]
push ecx
push SysReAllocStringLen
push esi
push dword [esp + 0x20]
call eax
push dword [esp + 0x6c]
push dword [esp + 0x18]
call fcn.10057d0e
pop ecx
pop ecx
mov dword [esp + 0x6c], eax
call fcn.1004afd6
mov edi, eax
cmp edi, esi
mov dword [esp + 0x3c], edi
je 0x1004a704
push edi
call fcn.1004b07a
cmp dword [esp + 0x20], esi
pop ecx
je 0x1004a5ee
push dword [esp + 0x1c]
call fcn.10054c67
test eax, eax
pop ecx
jbe 0x1004a5ee
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.1004b03e
add esp, 0x10
jmp 0x1004a5f8
push dword [esp + 0x14]
push edi
call fcn.1004aa78
push dword [esp + 0x58]
mov dword [esp + 0x24], 4
push dword [esp + 0x54]
push edi
call fcn.1004ae41
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x1004a636
push dword [esp + 0x58]
push dword [esp + 0x54]
push edi
call fcn.1004ae41
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x1004a704
push dword [esp + 0x6c]
push dword [esp + 0x1c]
call fcn.1004ae7b
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x1004a668
push dword [esp + 0x6c]
push dword [esp + 0x1c]
call fcn.1004ae7b
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
je 0x1004a704
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.1004a063
add esp, 0x14
test eax, eax
jne 0x1004a865
mov eax, dword [edi]
cmp eax, esi
je 0x1004a865
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.1004b03e
add esp, 0x10
test eax, eax
jne 0x1004a70c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004a74d
mov esi, dword [esp + 0x10]
call fcn.1004a132
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
call fcn.1004aec2
test eax, eax
pop ecx
jne 0x1004a797
mov eax, dword [esp + 0x10]
push dword [eax + 0x20]
call fcn.1004aec2
test eax, eax
pop ecx
jne 0x1004a797
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 0x1004a77c
push dword [esp + 0x10]
call fcn.1004a038
pop ecx
mov ecx, dword [esp + 0x188c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10054c7d
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 0x1004a74b
mov esi, dword [esp + 0x10]
call fcn.1004a132
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor esi, esi
cmp dword [eax + 0x30], esi
push esi
sete cl
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
push ecx
push 0x20000013
push dword [eax + 0x20]
call fcn.1004aeff
add esp, 0x14
cmp dword [esp + 0x28], 0xc8
je 0x1004a824
mov eax, dword [esp + 0x10]
add eax, 4
push eax
mov dword [esp + 0x28], esi
call edi
jmp 0x1004a745
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
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.1004aeff
add esp, 0x14
test eax, eax
je 0x1004a856
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x10]
add eax, 4
push eax
call edi
jmp 0x1004a74b
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1004a704