Function at 0x4190c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42cef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov ecx, dword [esp + 0x60]
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x42e0f8
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esp + 0x24], eax
lea edx, [esp + 0x70]
mov esi, 1
push edx
push esi
push ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x41913f
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
push eax
call sub.gdiplus.dll_GdipDisposeImage
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00419000
mov eax, dword [0x433948]
mov ecx, dword [0x43394c]
mov edx, dword [0x433950]
mov dword [esp + 0x48], eax
mov eax, dword [0x433954]
mov dword [esp + 0x4c], ecx
add esp, 8
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x64], 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x20], 0x55
call sub.gdiplus.dll_GdipSaveImageToStream
cmp eax, ebx
je 0x4191e8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
push edx
call sub.gdiplus.dll_GdipDisposeImage
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x14]
xor edi, edi
push edx
mov ecx, dword [eax]
xor esi, esi
push 2
push edi
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
je 0x419233
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
push edx
call sub.gdiplus.dll_GdipDisposeImage
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
push ebx
push ebx
push edi
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x41926f
mov eax, dword [esp + 0x70]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
push eax
call sub.gdiplus.dll_GdipDisposeImage
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x74]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x419346
mov edx, dword [esp + 0x14]
push edx
call fcn.0041d1ae
add esp, 4
lea edx, [esp + 0x74]
mov esi, eax
mov eax, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], ebx
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4192f6
mov eax, dword [esp + 0x70]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call fcn.0041d1bc
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x1c], ebp
push edx
call sub.gdiplus.dll_GdipDisposeImage
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x6c]
push ebx
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041d1bc
mov eax, dword [esp + 0x74]
add esp, 4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
push eax
call sub.gdiplus.dll_GdipDisposeImage
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
push ecx
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret