Function at 0x413970
Capabilities:
Delete file
Get common file path
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492c71
mov eax, dword fs:[0]
push eax
sub esp, 0x7d0
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x77c], ecx
lea ecx, [ebp - 0x780]
push ecx
mov dword [ebp - 0x788], edx
mov dword [ebp - 0x784], eax
lea edx, [ebp - 0x79c]
mov eax, 0x14
push edx
xor ebx, ebx
mov dword [ebp - 0x780], eax
mov dword [ebp - 0x79c], eax
push 0x4b
mov esi, 1
lea eax, [ebp - 0x73c]
push ebx
mov dword [ebp - 0x778], esi
mov dword [ebp - 0x73c], esi
mov dword [ebp - 0x730], 5
mov dword [ebp - 0x724], 4
mov dword [ebp - 0x798], ebx
mov dword [ebp - 0x794], 3
mov dword [ebp - 0x790], ebx
mov dword [ebp - 0x78c], eax
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
jne 0x413a35
mov eax, esi
jmp 0x413d95
mov ecx, dword [ebp - 0x738]
mov eax, ecx
and eax, 4
jne 0x413a4b
test cl, 8
je 0x413d7e
mov edi, 0xf
mov dword [ebp - 0x760], edi
mov dword [ebp - 0x764], ebx
mov byte [ebp - 0x774], bl
mov dword [ebp - 4], ebx
cmp eax, 4
jne 0x413aab
mov edx, dword [ebp - 0x720]
cmp edx, ebx
je 0x413d8f
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413a80
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x774]
call fcn.00402f10
mov eax, dword [ebp - 0x720]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x720], ebx
jmp 0x413b0c
test cl, 8
je 0x413d7e
push 0x3ff
lea ecx, [ebp - 0x717]
push ebx
push ecx
mov byte [ebp - 0x718], bl
call fcn.00462010
add esp, 0xc
push 3
push 0x400
lea edx, [ebp - 0x718]
push edx
call dword [sym.imp.WININET.dll_DetectAutoProxyUrl]
test eax, eax
je 0x413b0c
lea eax, [ebp - 0x718]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413af0
sub eax, edx
push eax
lea eax, [ebp - 0x718]
push eax
lea ecx, [ebp - 0x774]
call fcn.00402f10
cmp dword [ebp - 0x764], ebx
je 0x413d66
push 0x103
lea ecx, [ebp - 0x217]
push ebx
push ecx
mov byte [ebp - 0x218], bl
call fcn.00462010
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov byte [ebp - 0x114], bl
call fcn.00462010
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x114]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x744], edi
mov dword [ebp - 0x748], ebx
mov byte [ebp - 0x758], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413b90
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x758]
call fcn.00402f10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x7a0], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x774]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ebp - 4], 1
mov byte [ecx], bl
call fcn.00402b00
lea eax, [ebp - 0x758]
push eax
call fcn.004131e0
add esp, 0x20
cmp dword [ebp - 0x744], 0x10
mov esi, eax
mov byte [ebp - 4], bl
jb 0x413bfe
mov ecx, dword [ebp - 0x758]
push ecx
call fcn.00460f43
add esp, 4
cmp esi, ebx
je 0x413d59
mov edx, dword [ebp - 0x788]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [ebp - 0x758]
mov dword [ebp - 0x744], edi
mov dword [ebp - 0x748], ebx
mov byte [ebp - 0x758], bl
call fcn.00402b00
mov byte [ebp - 4], 2
cmp dword [ebp - 0x748], ebx
jne 0x413cce
push 0x38
lea eax, [ebp - 0x7d8]
push ebx
push eax
call fcn.00462010
mov esi, dword [ebp - 0x77c]
lea ecx, [ebp - 0x318]
mov edi, 0x10
add esp, 0xc
mov dword [ebp - 0x7cc], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x7dc], 0x3c
mov dword [ebp - 0x7c8], 0xff
mov dword [ebp - 0x7ac], 1
cmp dword [esi + 0x14], edi
jb 0x413c90
mov eax, dword [esi]
jmp 0x413c92
mov eax, esi
lea edx, [ebp - 0x7dc]
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x413cd9
lea eax, [ebp - 0x318]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413cb0
sub eax, edx
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x758]
call fcn.00402f10
jmp 0x413cd9
mov esi, dword [ebp - 0x77c]
mov edi, 0x10
mov ecx, dword [ebp - 0x758]
cmp dword [ebp - 0x744], edi
jae 0x413ced
lea ecx, [ebp - 0x758]
cmp dword [esi + 0x14], edi
jb 0x413cf6
mov eax, dword [esi]
jmp 0x413cf8
mov eax, esi
lea edx, [ebp - 0x718]
push edx
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00412a30
add esp, 0x10
test eax, eax
je 0x413d42
lea eax, [ebp - 0x718]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413d20
sub eax, edx
push eax
lea ecx, [ebp - 0x718]
push ecx
mov ecx, dword [ebp - 0x784]
call fcn.00402f10
mov dword [ebp - 0x778], ebx
cmp dword [ebp - 0x744], edi
jb 0x413d59
mov edx, dword [ebp - 0x758]
push edx
call fcn.00460f43
add esp, 4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x760], 0x10
jb 0x413d7e
mov ecx, dword [ebp - 0x774]
push ecx
call fcn.00460f43
add esp, 4
mov eax, dword [ebp - 0x720]
cmp eax, ebx
je 0x413d8f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x778]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret