Function at 0x4c4180
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6531e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x700724
mov dword [ebp - 0x3c], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x85a]
push ecx
mov word [ebp - 0x85c], ax
call fcn.006100a0
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x45a]
push eax
mov word [ebp - 0x45c], dx
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x85c]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x45c]
push edx
push 0
push 0x6748f0
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x30]
push str.file:__localhost__s
push edx
call fcn.00405ab0
add esp, 0xc
cmp dword [ebx + 0x1e0], 0
jne 0x4c42d3
mov eax, dword [ebx + 0x1e4]
sub eax, 0x10
push eax
call fcn.004011f0
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 5
push 0xc
push str._html__body_
lea ecx, [ebx + 0x1e4]
call fcn.00401670
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebx + 0x1e4]
call fcn.00401710
push 0xe
push str.__body___html_
lea ecx, [ebx + 0x1e4]
call fcn.00401710
mov byte [ebp - 4], 3
add edi, 0xfffffff0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c42d3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x45c]
push ecx
push edx
lea eax, [ebp - 0x1c]
push 0x674880
push eax
call fcn.00405ab0
mov ecx, dword [ebp - 0x1c]
push 0x674878
push ecx
call fcn.00614a04
mov edi, eax
mov eax, dword [ebx + 0x1e4]
lea esi, [ebx + 0x1e4]
add esp, 0x18
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4c4333
xor ecx, ecx
jmp 0x4c437d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4c4376
add eax, eax
mov dword [ebp - 0x20], eax
call fcn.006123b0
mov edi, esp
test edi, edi
je 0x4c4376
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push eax
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4c4378
xor eax, eax
mov edi, dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
push edi
push eax
push 1
push ecx
call fcn.006161f6
push edi
call fcn.0061466b
xor edi, edi
add esp, 0x14
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x24]
push eax
push 0x69916c
lea ecx, [ebx + 0x1d0]
call fcn.004c25e0
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 0xe
push 0x674834
lea ecx, [ebp - 0x34]
call fcn.0040bea0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
mov dword [ebp - 0x20], eax
cmp eax, edi
jl 0x4c43fd
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x69915c
push eax
mov eax, dword [ecx]
call eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], edi
je 0x4c45b6
mov ecx, dword [esi]
mov dword [ebp - 0x38], edi
mov eax, dword [ecx - 0xc]
lea edx, [eax + eax + 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x4c45b6
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x4c4438
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.00401370
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push eax
add ecx, 2
push ecx
push ebx
call fcn.004c2360
lea edx, [ebp - 0x38]
push edx
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp eax, edi
jl 0x4c45b6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0x11
cmp eax, edi
je 0x4c447b
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x674810
push eax
mov eax, dword [ecx]
call eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edi
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4c44a0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
push 0x674868
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4c4532
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
push 0
push 0x400
push esi
push ecx
call sub.OLEAUT32.dll_VarR8Pow
cmp eax, 1
sete bl
mov byte [ebp - 4], 0x13
push esi
call edi
test bl, bl
sete al
test al, al
jne 0x4c453c
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4c4523
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x10]
push edx
call edi
jmp 0x4c44a0
push 0x8007000e
call fcn.004011d0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x10]
push eax
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c455c
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bea0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x3c]
push eax
add ecx, 0x1f0
call fcn.004c3f50
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c45a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c45b4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor edi, edi
cmp dword [ebp - 0x20], edi
jge 0x4c469e
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c45ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x4c4602
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4c4615
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x4c4628
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c464b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c466e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4694
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4c4768
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c46c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x4c46d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4c46e7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x4c46fa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c471d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x868]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret