Function at 0x4103f0
Capabilities:
Parse url

Disassembly:
sub esp, 0x4c
push esi
mov esi, ecx
mov al, byte [esi + 0x44]
test al, al
jne 0x4106be
push edi
push 0x3c
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0042f5a0
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 0x41045a
push ecx
mov ecx, edi
call fcn.00401370
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 0x410487
push ecx
mov ecx, ebx
call fcn.00401370
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 0x4104b7
push eax
mov ecx, ebx
call fcn.00401370
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 0x4104e7
push eax
mov ecx, ebx
call fcn.00401370
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 0x410517
push eax
mov ecx, ebx
call fcn.00401370
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 [sym.imp.WININET.dll_InternetCrackUrlW]
mov ebx, eax
mov eax, dword [esi]
mov ebp, dword [eax + 0xd8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp ebx, 1
sete cl
push eax
push ebp
push ecx
call fcn.00422cd0
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 0x41056f
xor eax, eax
jmp 0x410589
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410574
sub eax, esi
sar eax, 1
js 0x4106c5
cmp eax, dword [ecx - 8]
jg 0x4106c5
mov esi, dword [esp + 0x10]
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
mov ecx, dword [esi]
test ecx, ecx
jne 0x4105ab
xor eax, eax
jmp 0x4105c5
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4105b0
sub eax, edi
sar eax, 1
js 0x4106c5
cmp eax, dword [ecx - 8]
jg 0x4106c5
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
mov word [edx + eax*2], 0
mov edx, dword [ecx]
test edx, edx
jne 0x4105e7
xor eax, eax
jmp 0x410605
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov si, word [eax]
add eax, 2
test si, si
jne 0x4105f0
sub eax, edi
sar eax, 1
js 0x4106c5
cmp eax, dword [edx - 8]
jg 0x4106c5
mov ebp, dword [esp + 0x18]
mov dword [edx - 0xc], eax
mov edx, dword [ecx]
mov word [edx + eax*2], 0
mov edx, dword [ebp]
test edx, edx
jne 0x410628
xor eax, eax
jmp 0x410645
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov si, word [eax]
add eax, 2
test si, si
jne 0x410630
sub eax, edi
sar eax, 1
js 0x4106c5
cmp eax, dword [edx - 8]
jg 0x4106c5
mov ebx, dword [esp + 0x1c]
mov dword [edx - 0xc], eax
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov esi, dword [ebx]
test esi, esi
jne 0x410664
xor eax, eax
jmp 0x410681
mov eax, esi
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410670
sub eax, edi
sar eax, 1
js 0x4106c5
cmp eax, dword [esi - 8]
jg 0x4106c5
mov dword [esi - 0xc], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4106a5
cmp word [eax], 0
je 0x4106a5
push eax
call fcn.004015a0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4106bb
cmp word [eax], 0
je 0x4106bb
push eax
mov ecx, ebp
call fcn.004015a0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x4c
ret 8
push 0x80070057
call fcn.004011d0
int3