Function at 0x40f7c0
Capabilities:
Parse url

Disassembly:
sub esp, 0x4c
push esi
mov esi, ecx
mov al, byte [esi + 0x44]
test al, al
jne 0x40fa66
push edi
push 0x3c
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00425e2a
mov eax, dword [esi + 0x2c]
mov ecx, 0x400
lea edi, [esi + 0x2c]
sub eax, 0x10
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], ecx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
add esp, 0xc
or edx, eax
jge 0x40f82a
push ecx
mov ecx, edi
call fcn.004046c0
mov ecx, dword [esp + 0x48]
mov edx, dword [edi]
mov eax, dword [esi + 0x34]
push ebx
lea ebx, [esi + 0x34]
mov dword [esp + 0x2c], edx
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
mov dword [esp + 0xc], ebx
jge 0x40f857
push ecx
mov ecx, ebx
call fcn.004046c0
mov ecx, dword [ebx]
mov eax, dword [esi + 0x38]
lea ebx, [esi + 0x38]
sub eax, 0x10
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 8]
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [esp + 0x3c]
sub ecx, eax
or edx, ecx
mov dword [esp + 0x10], ebx
jge 0x40f887
push eax
mov ecx, ebx
call fcn.004046c0
mov edx, dword [ebx]
mov eax, dword [esi + 0x3c]
lea ebx, [esi + 0x3c]
sub eax, 0x10
mov dword [esp + 0x38], edx
mov edx, dword [eax + 8]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x44]
sub edx, eax
or ecx, edx
mov dword [esp + 0x14], ebx
jge 0x40f8b7
push eax
mov ecx, ebx
call fcn.004046c0
mov eax, dword [ebx]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x40]
mov edx, dword [eax - 8]
lea ebx, [esi + 0x40]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x54]
sub edx, eax
or ecx, edx
mov dword [esp + 0x18], ebx
jge 0x40f8e7
push eax
mov ecx, ebx
call fcn.004046c0
mov eax, dword [ebx]
push ebp
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push ecx
push eax
call dword [0x42d4fc]
mov ebx, eax
mov eax, dword [esi]
mov ebp, dword [eax + 0xd0]
call dword [0x42d194]
xor ecx, ecx
cmp ebx, 1
sete cl
push eax
push ebp
push ecx
call fcn.0041fd50
movzx eax, word [esp + 0x44]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x28], edx
mov dword [esi + 0x30], eax
mov ecx, dword [edi]
add esp, 0xc
test ecx, ecx
jne 0x40f93f
xor eax, eax
jmp 0x40f955
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40f944
sub eax, esi
js 0x40fa6d
cmp eax, dword [ecx - 8]
jg 0x40fa6d
mov esi, dword [esp + 0x10]
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov ecx, dword [esi]
test ecx, ecx
jne 0x40f975
xor eax, eax
jmp 0x40f991
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40f980
sub eax, edi
js 0x40fa6d
cmp eax, dword [ecx - 8]
jg 0x40fa6d
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
mov byte [eax + edx], 0
mov edx, dword [ecx]
test edx, edx
jne 0x40f9b1
xor eax, eax
jmp 0x40f9c7
mov eax, edx
lea esi, [eax + 1]
mov bl, byte [eax]
add eax, 1
test bl, bl
jne 0x40f9b6
sub eax, esi
js 0x40fa6d
cmp eax, dword [edx - 8]
jg 0x40fa6d
mov ebp, dword [esp + 0x18]
mov dword [edx - 0xc], eax
mov edx, dword [ecx]
mov byte [eax + edx], 0
mov edx, dword [ebp]
test edx, edx
jne 0x40f9e8
xor eax, eax
jmp 0x40f9fd
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov bl, byte [eax]
add eax, 1
test bl, bl
jne 0x40f9f0
sub eax, esi
js 0x40fa6d
cmp eax, dword [edx - 8]
jg 0x40fa6d
mov esi, dword [esp + 0x1c]
mov dword [edx - 0xc], eax
mov edx, dword [ebp]
mov byte [eax + edx], 0
mov edx, dword [esi]
test edx, edx
jne 0x40fa1a
xor eax, eax
jmp 0x40fa2d
mov eax, edx
lea edi, [eax + 1]
nop
mov bl, byte [eax]
add eax, 1
test bl, bl
jne 0x40fa20
sub eax, edi
js 0x40fa6d
cmp eax, dword [edx - 8]
jg 0x40fa6d
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40fa4e
cmp byte [eax], 0
je 0x40fa4e
push eax
call fcn.004048d0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40fa63
cmp byte [eax], 0
je 0x40fa63
push eax
mov ecx, ebp
call fcn.004048d0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x4c
ret 8
push 0x80070057
call fcn.00404490
int3