Function at 0x47d5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641c50
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x6bc858]
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 edi, ecx
push 0x6745b6
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x70], edi
call fcn.00412330
xor ebx, ebx
lea esi, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004c4b60
push 0x1b
push str.TemplateTmpwwwIndex.html
mov ecx, esi
call fcn.00412ae0
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x6c]
push ecx
push 0x675c14
lea ecx, [eax + 0x10]
call fcn.0040c880
cmp eax, ebx
jl 0x47d8a8
mov eax, dword [ebp - 0x6c]
mov esi, eax
mov dword [ebp - 0x74], esi
cmp eax, ebx
je 0x47d8a8
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
lea ecx, [ebp - 0x54]
push ecx
push eax
mov dword [ebp - 0x54], ebx
call edx
mov dword [ebp - 0x64], ebx
cmp eax, ebx
jl 0x47d8a0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
lea edx, [ebp - 0x64]
push edx
push 0x64eafc
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jl 0x47d892
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, ebx
jl 0x47d884
lea ecx, [ebp - 0x88]
push ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [ebp - 0x84]
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x10
mov eax, esp
mov edx, 3
mov word [ebp - 0x88], dx
mov esi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x60]
mov dword [eax], esi
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x7c]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0x80], ecx
mov ebx, dword [edx]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x2c]
push edx
mov dword [eax + 0xc], edi
call ecx
xor ebx, ebx
cmp eax, ebx
jl 0x47d870
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x47d870
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x58]
push ecx
push 0x64eacc
push eax
call edx
cmp eax, ebx
jl 0x47d862
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
lea edx, [ebp - 0x68]
push edx
push eax
mov eax, dword [ecx + 0xe8]
call eax
cmp eax, ebx
jl 0x47d854
cmp dword [ebp - 0x68], ebx
je 0x47d854
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x47d767
lea eax, [ebp - 0x4c]
push str.w__ccsUNICODE
push eax
call fcn.005f5530
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x47d84e
mov ecx, dword [str._html_]
mov edx, dword [0x687db0]
mov eax, dword [0x687db4]
mov dword [ebp - 0x1c], edx
mov edx, dword [str.__html_]
mov dword [ebp - 0x20], ecx
mov cx, word [0x687db8]
mov dword [ebp - 0x18], eax
mov eax, dword [str.n6QB]
mov dword [ebp - 0x30], edx
mov edx, dword [0x687dc8]
mov word [ebp - 0x14], cx
mov ecx, dword [0x687dc4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47d7d0
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [ebp - 0x20]
push 1
push ecx
call fcn.005f5d70
mov edx, dword [ebp - 0x68]
mov eax, edx
add esp, 0x10
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47d800
sub eax, edi
sar eax, 1
push esi
add eax, eax
push eax
push 1
push edx
call fcn.005f5d70
lea eax, [ebp - 0x30]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47d824
sub eax, edx
sar eax, 1
push esi
lea ecx, [eax + eax]
push ecx
lea edx, [ebp - 0x30]
push 1
push edx
call fcn.005f5d70
push esi
call fcn.005f64a0
add esp, 0x14
jmp 0x47d854
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x54], ebx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov dword [edi + 0x20], ebx
call fcn.0047e590
cmp dword [ebp - 0x38], 0x10
jb 0x47d8c2
mov edx, dword [ebp - 0x4c]
push edx
call fcn.005f0cb0
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 1
call fcn.0040ed70
mov eax, dword [ebp - 0x50]
push eax
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0040ed70
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.005f0da0
mov esp, ebp
pop ebp
ret