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

Disassembly:
push 0xffffffffffffffff
push 0x6396fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50c
mov eax, dword [esp + 0x520]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x40], ecx
push str.shlwapi
mov dword [eax], ebx
mov dword [esp + 0x40], 0x2d0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [esp + 0x52c]
mov ebp, eax
cmp ebp, ebx
jne 0x41d5f5
push str.shlwapi.dll
call fcn.0044abc0
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x2c], 1
je 0x41d747
push str.AssocQueryStringW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41d730
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x44]
push ecx
push edx
push str.open
push 0x6cbbac
push 2
push ebx
call eax
cmp eax, ebx
jl 0x41d730
lea eax, [esp + 0x44]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
jbe 0x41d730
mov ecx, 0x6c910c
test ecx, ecx
je 0x41d728
lea edx, [esp + 0x44]
test edx, edx
je 0x41d728
lea eax, [esp + 0x44]
lea ecx, [esp + 0x20]
push eax
call fcn.00401ee0
mov ecx, esi
mov dword [esp + 0x524], ebx
call fcn.00401070
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
push ebx
push 0x6c910c
lea ecx, [esp + 0x18]
mov byte [esp + 0x52c], 1
call fcn.004027e0
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebx, [eax + edi + 2]
lea eax, [ebx + ebx]
push eax
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esi], edi
je 0x41d701
lea ecx, [ebx + ebx]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x20]
call fcn.00401f10
push eax
lea ecx, [esp + 0x14]
call fcn.00401f10
push eax
mov eax, dword [esi]
push ebx
push eax
call fcn.006099de
mov ecx, dword [esi]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x524], 0
call fcn.00401070
lea ecx, [esp + 0x20]
mov dword [esp + 0x524], 0xffffffff
call fcn.00401070
xor ebx, ebx
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x2c], ebx
je 0x41d73d
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x1c], ebx
jne 0x41d9e9
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], bx
mov eax, dword [0x6fca48]
mov dword [esp + 0x524], 2
cmp eax, ebx
jne 0x41d76f
mov eax, 0x6fca4c
mov edx, str._stmp_test.html
test edx, edx
je 0x41d857
cmp eax, ebx
je 0x41d857
push eax
lea ecx, [esp + 0x34]
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x524], 3
call fcn.00401070
lea ecx, [esp + 0x20]
call fcn.004027c0
push ebx
push str._stmp_test.html
lea ecx, [esp + 0x28]
mov byte [esp + 0x52c], 4
call fcn.004027e0
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebp, [eax + edi + 2]
lea ebx, [ebp + ebp]
push ebx
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x41d82f
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.006099de
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x524], 3
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x524], 2
call fcn.00401070
mov ecx, dword [esp + 0x10]
xor ebx, ebx
cmp ecx, ebx
mov eax, ecx
jne 0x41d861
lea eax, [esp + 0x14]
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d9cf
lea edx, [esp + 0x2c]
push ebx
push edx
push 0xd
push str._HTML___HTML_
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x41d8a6
lea eax, [esp + 0x14]
lea ecx, [esp + 0x44]
push ecx
push ebx
push eax
call dword [0x6fc2c8]
cmp eax, 0x20
jle 0x41d9bc
lea edx, [esp + 0x44]
push edx
call fcn.00609a4e
add esp, 4
test eax, eax
jbe 0x41d9bc
mov eax, 0x6c910c
test eax, eax
je 0x41d9b4
lea ecx, [esp + 0x44]
test ecx, ecx
je 0x41d9b4
lea edx, [esp + 0x44]
lea ecx, [esp + 0x30]
push edx
call fcn.00401ee0
mov ecx, esi
mov byte [esp + 0x524], 5
call fcn.00401070
lea ecx, [esp + 0x20]
call fcn.004027c0
push ebx
push 0x6c910c
lea ecx, [esp + 0x28]
mov byte [esp + 0x52c], 6
call fcn.004027e0
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebp, [eax + edi + 2]
lea ebx, [ebp + ebp]
push ebx
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esi], edi
je 0x41d990
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
mov eax, dword [esi]
push ebp
push eax
call fcn.006099de
mov ecx, dword [esi]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x524], 5
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x524], 2
call fcn.00401070
xor ebx, ebx
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x41d9c8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x524], 0xffffffff
call fcn.00401070
cmp dword [esp + 0x1c], ebx
je 0x41da59
push 0x7e
mov ecx, esi
call fcn.00401f10
push eax
call fcn.0060a17b
add esp, 8
test eax, eax
je 0x41da3f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x316]
mov word [esp + 0x314], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x314]
push ebx
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.00401f10
push eax
call fcn.00453970
add esp, 8
mov ecx, esi
push eax
push 0x6c910c
call fcn.0041da80
mov ecx, esi
call fcn.00401f10
mov ecx, dword [esp + 0x40]
push eax
call fcn.0041dc80
mov ecx, dword [esp + 0x530]
mov dword [ecx], eax
mov ecx, dword [esp + 0x51c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x518
ret 8