Function at 0x515bc0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x520130
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add ecx, 0x28
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
cmp dword [edi + 0x10], 0
je 0x516029
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x515c27
mov eax, dword [edi]
mov dword [ebp - 0x10], 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
mov eax, dword [ebp + 0xc]
je 0x516029
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x88], 0x3c
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4c], eax
inc eax
mov ecx, eax
mov dword [ebp - 0x24], eax
add ecx, eax
mov eax, 0xffffffff
cmovae eax, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], eax
push eax
call fcn.005d8940
add esp, 4
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x78], eax
push esi
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x74], eax
je 0x515d14
push dword [ebp - 0x48]
call fcn.005d8940
add esp, 4
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x40]
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 7
jbe 0x515d1f
mov ecx, dword [ecx]
lea eax, [ebp - 0x88]
push eax
push 0
push dword [ebp - 0x4c]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov eax, dword [ebp - 0x78]
je 0x516005
test eax, eax
je 0x516005
mov esi, dword [ebp - 0x74]
test esi, esi
je 0x516002
cmp esi, 7
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], 0
jbe 0x515d84
sub esp, 0xc
mov cl, byte [ebp - 0x20]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
jmp 0x515d9f
lea ecx, [esi + esi]
mov dword [ebp - 0x2c], esi
lea edx, [ebp - 0x3c]
push ecx
push eax
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x3c], 0
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x3c]
mov eax, dword [esi + 0x14]
cmp ebx, esi
je 0x515e16
cmp eax, 8
jb 0x515de3
mov ecx, dword [esi]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jb 0x515dd9
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x51604f
add eax, eax
add eax, 0x25
mov edx, eax
push edx
push ecx
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x3c]
movsd xmm1, qword [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], 0
movsd qword [esi + 0x10], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm2
jmp 0x515e4e
cmp eax, 8
jb 0x515e4e
mov ecx, dword [ebp - 0x3c]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jb 0x515e44
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x516067
add eax, eax
add eax, 0x25
mov edx, eax
push edx
push ecx
call fcn.005d319e
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x516002
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], 0
cmp esi, 7
jbe 0x515e95
sub esp, 0xc
mov cl, byte [ebp - 0x20]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
lea ebx, [ebp - 0x3c]
jmp 0x515ead
lea ecx, [esi + esi]
mov dword [ebp - 0x2c], esi
push ecx
push eax
push ebx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x3c], 0
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
cmp edx, 7
cmova ebx, esi
xor eax, eax
test ecx, ecx
je 0x515ede
mov dword [ebp - 0x24], esi
mov edi, ebx
mov esi, ecx
nop dword [eax]
cmp word [edi], 0x3f
je 0x515ee6
add edi, 2
dec esi
jne 0x515ed0
jmp 0x515eef
lea ebx, [ebp - 0x3c]
jmp 0x515f69
mov esi, edi
sub esi, ebx
cmp esi, 0xfffffffe
jne 0x515ef7
mov esi, dword [ebp - 0x24]
lea ebx, [ebp - 0x3c]
jmp 0x515f15
sar esi, 1
lea ebx, [ebp - 0x3c]
cmp ecx, esi
jb 0x516073
mov dword [ebp - 0x2c], esi
mov word [edi], 0
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
cmp edx, 7
mov edi, ebx
cmova edi, esi
test ecx, ecx
je 0x515f69
mov dword [ebp - 0x24], esi
mov eax, edi
mov esi, ecx
nop dword [eax + eax]
cmp word [eax], 0x23
je 0x515f3e
add eax, 2
dec esi
jne 0x515f30
jmp 0x515f47
mov esi, eax
sub esi, edi
cmp esi, 0xfffffffe
jne 0x515f4e
mov esi, dword [ebp - 0x24]
mov eax, ecx
jmp 0x515f69
sar esi, 1
cmp ecx, esi
jb 0x51607f
mov dword [ebp - 0x2c], esi
mov word [eax], 0
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
cmp edx, 7
cmova ebx, esi
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov esi, edx
sub esi, ecx
cmp esi, eax
jae 0x515fa5
mov dword [ebp - 0x10], 5
sub esp, 0x10
mov cl, byte [ebp - 0x20]
mov byte [esp + 4], cl
mov ecx, edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.0040b010
jmp 0x515fcb
lea esi, [ecx + eax]
cmp edx, 7
mov dword [edi + 0x10], esi
jbe 0x515fb5
mov edx, dword [ebp + 8]
mov edi, dword [edx]
add eax, eax
lea ecx, [edi + ecx*2]
push eax
push ebx
push ecx
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x516002
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x515ff8
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x51605b
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x516012
push eax
call fcn.005db8b4
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x516022
push eax
call fcn.005db8b4
add esp, 4
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x10], 3
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 2
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
mov dword [ebp - 0x10], 5
call fcn.005e9a00
mov dword [ebp - 0x10], 5
call fcn.005e9a00
nop dword [eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x5160fe
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x5160f4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x516117
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], 0
add esp, 0x10
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x516173
mov eax, dword [ebp + 8]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
mov eax, dword [eax]
jb 0x516169
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x516197
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x10
pop ebp
ret
call fcn.006207e0
int3