Function at 0x4177b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x640c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x4fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x514]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x528]
mov ebx, dword [esp + 0x524]
xor ebp, ebp
push str.shlwapi
mov dword [esp + 0x20], eax
mov dword [eax], ebp
mov dword [esp + 0x28], 0x168
mov dword [esp + 0x18], ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebp
jne 0x41783a
push str.shlwapi.dll
call fcn.00447580
mov esi, eax
add esp, 4
lea edi, [ebp + 1]
cmp esi, ebp
je 0x4178b0
push str.AssocQueryStringW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x41789b
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push str.open
push 0x6799e0
push 2
push ebp
call eax
cmp eax, ebp
jl 0x41789b
lea eax, [esp + 0x38]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x417870
sub eax, edx
sar eax, 1
je 0x41789b
push ebp
lea eax, [esp + 0x3c]
push eax
push 0x675ea0
mov ecx, ebx
call fcn.004021b0
mov dword [esp + 0x14], 1
cmp edi, ebp
je 0x4178a6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x14], ebp
jne 0x4179ac
xor ecx, ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov word [esp + 0x30], cx
mov dword [esp + 0x51c], ebp
mov eax, dword [0x75ac2c]
cmp eax, ebp
jne 0x4178d4
mov eax, 0x75ac30
push ebp
push eax
push str._stmp_test.html
lea ecx, [esp + 0x38]
call fcn.004021b0
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x4178f0
lea eax, [esp + 0x30]
push ebp
push ebp
push 2
push ebp
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41798e
push ebp
lea edx, [esp + 0x1c]
push edx
push 0xd
push str._HTML___HTML_
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x417935
lea eax, [esp + 0x30]
lea ecx, [esp + 0x38]
push ecx
push ebp
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp eax, 0x20
jle 0x41797b
lea eax, [esp + 0x38]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x417950
sub eax, edx
sar eax, 1
je 0x41797b
push ebp
lea edx, [esp + 0x3c]
push edx
push 0x675ea0
mov ecx, ebx
call fcn.004021b0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x417987
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x51c], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00401210
cmp dword [esp + 0x14], ebp
je 0x417a38
mov eax, dword [ebx]
cmp eax, ebp
jne 0x4179b5
lea eax, [ebx + 4]
push 0x7e
push eax
call fcn.0061ee70
add esp, 8
test eax, eax
je 0x417a0c
push 0x206
lea ecx, [esp + 0x30e]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x314], ax
call fcn.0061d9e0
mov eax, dword [ebx]
add esp, 0xc
cmp eax, ebp
jne 0x4179ed
lea eax, [ebx + 4]
push ebp
lea edx, [esp + 0x30c]
push edx
push eax
call fcn.004484e0
add esp, 8
push eax
push 0x675ea0
mov ecx, ebx
call fcn.004021b0
mov eax, dword [ebx]
cmp eax, ebp
jne 0x417a15
lea eax, [ebx + 4]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00410f40
mov ecx, dword [esp + 0x1c]
push eax
push str.br_ld
push 0x75aa10
mov dword [ecx], eax
call fcn.00402f70
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x514]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4fc]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x50c
ret 8