Function at 0x100649c6
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x44
mov eax, 0x100e8d26
call fcn.100c908c
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push dword [esi + 0x10]
xor edi, edi
lea ecx, [ebp + 0x44]
mov dword [ebp - 4], edi
call fcn.10046fb3
mov byte [ebp - 4], 1
cmp dword [esi + 4], edi
jne 0x10064a20
cmp dword [ebp + 0x44], edi
je 0x10064a0c
cmp dword [ebp + 0x44], 0xffffffff
je 0x10064a0c
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x48
leave
ret
push dword [esi + 0x14]
lea ecx, [ebp + 0x40]
call fcn.10046fb3
push 0x50
lea eax, [ebp - 0x60]
push edi
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x64], edi
call fcn.100c7c60
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push 0x54
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x10064a6a
cmp dword [ebp + 0x40], edi
je 0x100649f8
cmp dword [ebp + 0x40], 0xffffffff
je 0x100649f8
push dword [ebp + 0x40]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x100649f8
lea eax, [ebp + 0x38]
push eax
call fcn.10060f33
pop ecx
push str.tbshot.
push eax
lea eax, [ebp + 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.10006fb9
add esp, 0xc
push esi
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.10006f5b
add esp, 0xc
push str..bmp
push eax
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.10006fb9
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x20]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x38]
add ecx, 0xfffffff0
call fcn.10003f60
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
je 0x10064bb1
cmp ebx, 0xffffffff
je 0x10064baa
mov eax, 0x4d42
mov word [ebp + 0x24], ax
xor eax, eax
push edi
mov word [ebp + 0x2a], ax
mov word [ebp + 0x2c], ax
lea eax, [ebp + 0x3c]
push eax
push 0xe
lea eax, [ebp + 0x24]
push eax
mov dword [ebp + 0x26], edi
mov dword [ebp + 0x3c], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp + 0x2e], 0x36
call edi
push 0
lea eax, [ebp + 0x3c]
push eax
push 0x28
lea eax, [ebp - 0x4c]
push eax
push ebx
call edi
push 0
lea eax, [ebp + 0x3c]
push eax
mov eax, dword [esi + 8]
imul eax, eax, 0x18
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [esi + 0xc]
push eax
push dword [ebp - 0x50]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.10003f60
cmp dword [ebp + 0x40], 0
je 0x10064b8e
cmp dword [ebp + 0x40], 0xffffffff
je 0x10064b8e
push dword [ebp + 0x40]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x44], 0
je 0x10064ba3
cmp dword [ebp + 0x44], 0xffffffff
je 0x10064ba3
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
jmp 0x10064a0e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x34]
add ecx, 0xfffffff0
call fcn.10003f60
jmp 0x10064a54