Function at 0x448b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x61308c]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
push esi
push edi
test eax, eax
je 0x4490af
test edx, edx
je 0x4490af
test ecx, ecx
je 0x4490af
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor eax, eax
mov dword [esp + 0x3c], edi
cmp edi, 0xffffffff
je 0x4490b1
mov dword [esp + 0x48], eax
xorps xmm0, xmm0
mov word [esp + 0x48], ax
mov eax, 3
push 0
mov dword [esp + 0x4e], 1
mov word [esp + 0x50], ax
lea eax, [esp + 0x3c]
push eax
push 6
lea eax, [esp + 0x54]
movaps xmmword [esp + 0xbc], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [esp + 0x1c], eax
lea edi, [esp + 0xf0]
xor esi, esi
mov eax, dword [esp + 0x14]
push edi
push dword [eax + esi*4]
call dword [sym.imp.USER32.dll_GetIconInfo]
inc esi
add edi, 0x14
cmp esi, 3
jl 0x448bc4
lea eax, [esp + 0x100]
mov dword [esp + 0x40], 0x36
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], esi
push 1
lea ecx, [esp + 0x64]
push ecx
push dword [eax - 4]
call fcn.00448a20
mov ecx, dword [esp + 0x6e]
cmp cx, 8
jbe 0x448c21
test byte [esp + 0x70], 3
mov edi, 0x34
mov eax, 0x28
cmove edi, eax
jmp 0x448c3a
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x448c33
mov eax, 1
shl eax, cl
lea edi, [eax*4 + 0x28]
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x88]
push 0x20
push eax
mov eax, dword [esp + 0x34]
mov dword [esp + esi + 0xec], edx
push dword [eax]
call fcn.00448a20
mov ecx, dword [esp + 0x96]
lea edx, [esp + 0xd8]
add edx, esi
mov dword [esp + 0x20], edx
mov dword [edx], 0x28
cmp cx, 8
jbe 0x448c8c
test byte [esp + 0x98], 3
je 0x448ca7
mov dword [edx], 0x34
jmp 0x448ca7
mov eax, dword [esp + 0xa8]
test eax, eax
jne 0x448c9e
mov eax, 1
shl eax, cl
lea eax, [eax*4 + 0x28]
mov dword [edx], eax
push edi
call fcn.0053630a
mov dword [esp + 0x48], eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
push eax
call fcn.0053630a
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + esi + 0xc0], eax
push dword [esp + 0x74]
call fcn.0053630a
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + esi + 0xcc], eax
push dword [esp + 0x9c]
call fcn.0053630a
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push 0
mov esi, dword [eax - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push dword [esp + 0x48]
mov edi, eax
push esi
call fcn.00448a20
mov eax, dword [esp + 0x44]
push 0
push eax
push dword [esp + 0x38]
push dword [eax + 8]
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x2c]
push 0
mov esi, dword [eax]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x20
push dword [esp + 0x2c]
mov edi, eax
push esi
call fcn.00448a20
mov eax, dword [esp + 0x28]
push 0
push eax
push dword [esp + 0x2c]
push dword [eax + 8]
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
movzx eax, byte [ecx + 4]
mov byte [esp + 0xb0], al
movzx eax, byte [ecx + 8]
mov byte [esp + 0xb1], al
movzx eax, word [ecx + 0xc]
movzx ecx, word [ecx + 0xe]
imul ecx, eax
mov word [esp + 0xb2], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x9c]
add eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xbc], eax
mov edi, dword [esi + edi]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x448def
mov dword [edi + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov edi, dword [esi + eax]
lea eax, [esp + 0x28]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x448e1b
mov dword [edi + 8], eax
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
push 0
lea eax, [ecx + eax*4]
add dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push 0x10
lea eax, [esp + 0xbc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x44]
and dword [esp + 0x20], eax
call fcn.00536315
add esp, 4
push dword [esp + 0x24]
call fcn.00536315
mov eax, dword [esp + 0x30]
add esi, 4
add eax, 0x14
mov dword [esp + 0x18], esi
add esp, 4
mov dword [esp + 0x2c], eax
cmp esi, 0xc
jl 0x448bf4
xor esi, esi
mov dword [esp + 0x20], esi
nop dword [eax + eax]
mov ecx, dword [esp + esi + 0xc0]
push 0
mov eax, dword [ecx + 8]
add eax, eax
mov dword [ecx + 8], eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + esi + 0xe0]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov edi, dword [eax + esi]
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x448edd
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov edi, dword [eax + esi]
lea eax, [esp + 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x448f09
mov dword [edi + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov edi, dword [eax + esi]
lea eax, [esp + 0x60]
push eax
push 0x26200a
push 1
lea eax, [esp + 0x5c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x448f51
mov dword [edi + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov edi, dword [eax + esi]
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x448f7d
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
shl eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov edi, dword [eax + esi]
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x448fac
mov dword [edi + 8], eax
mov edi, dword [esp + 0x14]
sub edi, 1
js 0x448ff4
mov ecx, dword [esp + 0x24]
mov esi, edi
imul esi, ecx
mov eax, ecx
neg eax
mov dword [esp + 0x30], eax
add esi, dword [esp + 0x34]
nop word [eax + eax]
push 0
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [esp + 0x30]
sub edi, 1
mov ecx, dword [esp + 0x24]
jns 0x448fd0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + esi]
lea eax, [esp + 0x60]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x449010
mov dword [edi + 8], eax
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x38]
push 0
push eax
push dword [esp + esi + 0xec]
push dword [esp + esi + 0xd8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [esp + 0x1c], eax
add esi, 4
mov dword [esp + 0x20], esi
cmp esi, 0xc
jl 0x448e90
lea edi, [esp + 0xfc]
xor esi, esi
nop dword [eax]
push dword [esp + esi + 0xc0]
call fcn.00536315
add esp, 4
push dword [esp + esi + 0xcc]
call fcn.00536315
add esp, 4
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [edi]
call dword [sym.imp.GDI32.dll_DeleteObject]
add esi, 4
lea edi, [edi + 0x14]
cmp esi, 0xc
jl 0x449050
mov edi, dword [esp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.005120a1
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, esp
call fcn.005120a1
mov esp, ebp
pop ebp
ret 0x10