Function at 0x1003aea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov dword [esp + 8], 0
mov eax, 1
mov ebx, dword [esp + 0x48]
push esi
push edi
mov edi, ecx
mov word [edi + 4], ax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x10], eax
dec eax
mov dword [edi], 0x10056a18
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
cmp eax, 9
ja case.0x1003aefb.7
movzx eax, byte [eax + 0x1003b428]
jmp dword [eax*4 + 0x1003b414]
push 0
mov ecx, ebx
call fcn.1001e9c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 8]
cmp dword [eax + ebx + 0x94], 0
jne 0x1003b118
mov edx, dword [ecx + 0xc]
add edx, ebx
cmp dword [edx + 0x18], 0
je 0x1003afb1
mov ebx, dword [edx + 0x18]
mov al, byte [edx + 0x20]
mov ebp, dword [edx + 0x14]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0
test ebx, ebx
jle 0x1003af89
lea eax, [ebx + 0x10]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x1003af89
push ebx
push ebp
push esi
mov dword [esp + 0x28], ebx
mov byte [esi + ebx], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x18]
mov eax, 1
jmp 0x1003afda
mov esi, 0x10059da0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov eax, 1
mov dword [esp + 0x54], esi
jmp 0x1003afda
push ecx
push str.X_SPF_Referer
add edx, 0xd4
lea ecx, [esp + 0x40]
call fcn.10025420
mov esi, dword [esp + 0x20]
mov ecx, eax
add esp, 8
mov eax, dword [ecx]
mov dword [esp + 0x54], eax
mov eax, 2
mov ebp, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0
test ebp, ebp
jle 0x1003b024
lea eax, [ebp + 0x10]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x1003b024
push ebp
push dword [esp + 0x58]
mov dword [esp + 0x24], ebp
push ebx
mov byte [ebx + ebp], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1003b03d
mov ebx, 0x10059da0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.msvcrt.dll_free]
mov dword [esp + 0x54], ebp
test al, 2
je 0x1003b06c
mov ecx, dword [esp + 0x38]
and eax, 0xfffffffd
mov dword [esp + 0x50], eax
cmp ecx, 0x10059da0
je 0x1003b06c
push ecx
call ebp
mov eax, dword [esp + 0x54]
add esp, 4
test al, 1
je 0x1003b07e
cmp esi, 0x10059da0
je 0x1003b07e
push esi
call ebp
add esp, 4
mov ecx, dword [edi + 8]
lea edx, [esp + 0x18]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
push dword [eax + ecx + 0x3c]
push edx
push dword [eax + ecx + 0x30]
mov ecx, dword [ecx + 8]
call fcn.100396e0
test eax, eax
je 0x1003b10a
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov esi, dword [ecx + eax + 0x94]
test esi, esi
je 0x1003b10a
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + 8]
add ebp, ecx
mov ecx, dword [ebp + 0x94]
cmp esi, ecx
je 0x1003b106
test ecx, ecx
je 0x1003b0eb
mov eax, dword [ecx + 0xc]
add ecx, 0x14
mov eax, dword [eax + 8]
add ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add dword [eax + ecx], 0xffffffff
jne 0x1003b0eb
add ecx, 0xfffffff8
je 0x1003b0eb
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, esi
mov dword [ebp + 0x94], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + esi + 0x14]
add ecx, esi
mov eax, dword [eax + 4]
inc dword [eax + ecx + 0x14]
mov ebp, dword [esp + 0x54]
cmp ebx, 0x10059da0
je 0x1003b118
push ebx
call ebp
add esp, 4
mov ecx, dword [edi + 8]
mov edx, str.spfpbjfragsppprefetchfeatureindext
mov eax, dword [ecx + 0xc]
add ecx, 0x4c
mov eax, dword [eax + 8]
add ecx, eax
call fcn.10008dc0
mov ecx, dword [edi + 8]
push 0
call fcn.1001e9c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
cmp dword [eax + ebx + 0xe8], 0
je case.0x1003aefb.7
cmp dword [eax + ebx + 0x78], 0x10
jne case.0x1003aefb.7
push 0x10
push str.application_json
push dword [eax + ebx + 0x74]
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne case.0x1003aefb.7
mov eax, dword [ebx + 0xc]
mov ebp, 0x10059d98
push 0
mov ecx, ebp
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ebx + 0xe4]
test eax, eax
push dword [edx + ebx + 0xe8]
cmovne ecx, eax
mov edx, str.contentPlaybackContext
push ecx
lea ecx, [esp + 0x1c]
call fcn.10006cb0
mov edx, dword [esp + 0x20]
add esp, 0xc
test edx, edx
jle case.0x1003aefb.7
mov eax, dword [ebx + 0xc]
mov ecx, ebp
mov esi, dword [esp + 0x10]
push 2
push closesocket
mov eax, dword [eax + 0xc]
push 0
push edx
mov edx, str.currentUrl
mov eax, dword [eax + ebx + 0xe4]
test eax, eax
cmovne ecx, eax
add esi, ecx
lea ecx, [esp + 0x28]
push esi
call fcn.100069a0
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x1c]
push 2
push ecx
mov ecx, esp
lea edx, [edx + esi]
mov dword [ecx], eax
lea ecx, [esp + 0x30]
call fcn.10007020
mov eax, dword [ebx + 0xc]
mov ecx, ebp
mov esi, dword [esp + 0x18]
mov edx, str.referer
push 2
push closesocket
mov eax, dword [eax + 0xc]
push 0
push dword [esp + 0x28]
mov eax, dword [eax + ebx + 0xe4]
test eax, eax
cmovne ecx, eax
add esi, ecx
lea ecx, [esp + 0x30]
push esi
call fcn.100069a0
mov edx, dword [esp + 0x34]
add esp, 0x1c
mov eax, dword [esp + 0x1c]
push 2
push ecx
mov ecx, esp
lea edx, [edx + esi]
mov dword [ecx], eax
lea ecx, [esp + 0x40]
call fcn.10007020
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x1003b327
cmp dword [esp + 0x3c], 0
je 0x1003b281
lea edx, [esp + 0x38]
jmp 0x1003b29d
mov ecx, dword [edi + 8]
mov esi, dword [ecx + 0xc]
mov edx, dword [esi + 0xc]
add edx, ecx
cmp dword [edx + 0x18], 0
je 0x1003b297
add edx, 0x14
jmp 0x1003b29d
lea edx, [ecx + 0x4c]
add edx, dword [esi + 8]
lea ecx, [esp + 0x28]
call fcn.10008310
test al, al
je 0x1003b327
mov ecx, dword [edi + 8]
mov ebp, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
mov esi, dword [eax + 8]
mov al, byte [esp + 0x34]
add esi, ecx
mov byte [esi + 0x58], al
test ebp, ebp
jle 0x1003b2f3
lea eax, [ebp + 1]
cmp dword [esi + 0x54], eax
jae 0x1003b2d9
push eax
lea ecx, [esi + 0x4c]
call fcn.10003580
test eax, eax
je 0x1003b2f3
mov eax, dword [esi + 0x4c]
push ebp
push dword [esp + 0x2c]
mov dword [esi + 0x50], ebp
push eax
mov byte [eax + ebp], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1003b300
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x50], 0
mov byte [eax], 0
mov ecx, dword [edi + 8]
mov edx, str.spfpbjfragsppprefetchfeatureindext
mov eax, dword [ecx + 0xc]
add ecx, 0x4c
mov eax, dword [eax + 8]
add ecx, eax
call fcn.10008dc0
mov ecx, dword [edi + 8]
push 0
call fcn.1001e9c0
mov ebp, 0x10059d98
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, str.signatureTimestamp
push 2
push closesocket
mov eax, dword [eax + 0xc]
push 0
push dword [esp + 0x20]
mov eax, dword [eax + ebx + 0xe4]
test eax, eax
cmovne ebp, eax
add esi, ebp
push esi
call fcn.100069a0
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x1c]
push 0
push ecx
mov ecx, esp
lea edx, [edx + esi]
mov dword [ecx], eax
lea ecx, [esp + 0x20]
call fcn.10007020
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x50], eax
test ecx, ecx
je 0x1003b3a3
push 0xa
push ecx
lea edx, [esp + 0x58]
mov ecx, ebx
call fcn.1000a9b0
mov eax, dword [esp + 0x58]
add esp, 8
mov esi, dword [sym.imp.msvcrt.dll_free]
mov dword [edi + 0x1c], eax
cmp ebx, 0x10059da0
je 0x1003b3ba
push ebx
call esi
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, 0x10059da0
je 0x1003b3cb
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, 0x10059da0
je case.0x1003aefb.7
push eax
call esi
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
mov ecx, dword [ebx + 0xc]
lea edx, [ebx + 0x4c]
push str.eurl
add edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
lea ecx, [ebx + 0x14]
add ecx, eax
call fcn.10008970
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8