Function at 0x47c6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc950
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x6510e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x90], eax
mov esi, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x94], ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47c985
mov edi, dword [esi + 0x10]
xorps xmm0, xmm0
mov esi, dword [esi + 0x14]
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
lea ecx, [edi + 1]
movlpd qword [ebp - 0x5c], xmm0
lea ecx, [ecx + ecx*2]
mov dword [ebp - 0x54], 0
and ecx, 0xfffffffc
mov dword [ebp - 0x7c], 0x28
imul ecx, esi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], 0x180001
push dword [eax]
mov dword [ebp - 0x88], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x84], eax
push ecx
push 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x8c], 0
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [ebp - 0x84]
mov dword [ebp - 0x98], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x90]
push 0xcc0020
push 0
push 0
mov ecx, dword [edx]
mov ecx, dword [ecx + 0xc]
push dword [ecx]
push esi
push edi
push 0
push 0
push dword [ebp - 0x84]
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x94]
mov eax, 0x4d42
mov word [ebp - 0x38], ax
mov ecx, edx
mov eax, dword [ebp - 0x88]
xorps xmm0, xmm0
add eax, 0x36
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x2e], 0x36
mov dword [ebp - 0x36], eax
lea esi, [ecx + 1]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c810
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.00404a8b
push 0x3c
call fcn.00581343
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.005043b0
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
call edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
push ecx
push 0x80
movups xmmword [ebp - 0x28], xmm0
push 2
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 8
jb 0x47c8d6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47c8cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c9a2
push ecx
push edx
call fcn.005815c4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov ecx, esi
mov word [ebp - 0x28], ax
mov eax, dword [esi]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x47c926
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47c91c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c9a2
push ecx
push edx
call fcn.005815c4
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x80]
push 0
push eax
push 0xe
lea eax, [ebp - 0x38]
mov dword [ebp - 0x80], 0
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x80]
push eax
push 0x28
lea eax, [ebp - 0x7c]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x98]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x84]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00581335
mov esp, ebp
pop ebp
ret 4
call fcn.00586698
int3