Function at 0x1003e56
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov ebx, dword [ebp + 0x18]
push edi
xor edi, edi
xor ecx, ecx
push 2
mov esi, 0x400
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 4], edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov dword [ebp - 8], edi
neg ecx
or ecx, eax
push ecx
call fcn.01008454
jmp 0x1003ef1
lea eax, [esi + esi]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push 0x21
push dword [ebp + 0xc]
call dword [0x1001234]
test eax, eax
jne 0x1003efe
cmp dword [ebp - 8], edi
jne 0x1003f76
call dword [fcn.01001188]
cmp eax, 0x7a
jne 0x1003f76
mov esi, dword [ebp - 0xc]
push dword [ebp + 0x18]
shr esi, 1
call fcn.01008368
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 8], 1
neg ecx
or ecx, eax
push ecx
call fcn.01008454
pop ecx
cmp eax, edi
mov dword [ebp + 0x18], eax
pop ecx
jne 0x1003e91
jmp 0x100404e
cmp dword [ebp + 0x10], edi
jne 0x1003f22
push 0xffffffffffffffff
push dword [ebp + 0x18]
mov ecx, ebx
mov dword [ebx + 4], edi
mov dword [ebx], edi
call fcn.010034eb
mov eax, dword [ebx]
cmp eax, edi
jge 0x1003f22
mov dword [ebp - 4], eax
jmp 0x10040b4
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.01008374
or dword [ebp - 0x34], 0xffffffff
or word [ebp - 0x30], 0xffff
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push dword [ebp + 0x18]
mov dword [ebp - 0x48], esi
mov esi, dword [0x100123c]
call esi
test eax, eax
jne 0x1003f6f
call dword [fcn.01001188]
cmp eax, edi
jle 0x1003f69
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x1003f82
mov dword [ebp - 4], 0xc00d2ee3
jmp 0x10040b4
cmp dword [ebp + 0x10], edi
mov ecx, dword [ebp - 0x34]
mov word [eax + ecx*2], di
jne 0x1004039
push 0x3c
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.01008374
mov ecx, dword [ebp + 0x14]
or dword [ebp - 0x70], 0xffffffff
or word [ebp - 0x6c], 0xffff
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push edi
push edi
mov dword [ebp - 0x84], 0x3c
call fcn.0100345b
push eax
call esi
test eax, eax
je 0x1004006
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x1004006
mov ecx, dword [ebp - 0x70]
mov word [eax + ecx*2], di
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x70]
jne 0x1004006
push dword [ebp - 0x74]
push dword [ebp - 0x38]
call dword [0x1001338]
test eax, eax
pop ecx
pop ecx
jne 0x1004006
mov ax, word [ebp - 0x30]
cmp ax, word [ebp - 0x6c]
je 0x10040b4
push dword [ebp + 0x20]
call fcn.01008368
mov esi, dword [ebp + 0x1c]
pop ecx
push dword [esi]
mov dword [ebp + 0x20], edi
call dword [0x1001240]
lea eax, [ebp + 0x20]
push eax
push esi
mov ecx, ebx
mov dword [esi], edi
call fcn.0100345b
push eax
push dword [ebp + 8]
call fcn.01003641
jmp 0x1003f1a
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax + 0x34]
push eax
call dword [fcn.0100132c]
mov esi, eax
cmp esi, edi
pop ecx
jne 0x1004057
mov dword [ebp - 4], 0x8007000e
jmp 0x10040b4
movzx eax, word [ebp - 0x30]
push eax
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
push 0x1001500
add eax, 0x14
push eax
lea ebx, [esi + 2]
push ebx
call fcn.01002daf
add esp, 0x14
push 0xc
push esi
push 0x26
push dword [ebp + 8]
mov dword [esi], 3
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
call dword [0x1001238]
test eax, eax
jne 0x10040ac
call dword [fcn.01001188]
cmp eax, edi
jle 0x10040a9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
push esi
call dword [fcn.01001330]
pop ecx
cmp dword [ebp + 0x18], edi
pop edi
pop esi
pop ebx
je 0x10040c5
push dword [ebp + 0x18]
call fcn.01008368
pop ecx
mov eax, dword [ebp - 4]
leave
ret 0x1c