Function at 0x1000357a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003bcaf
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x1004a300]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x1004a300]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x20], esi
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0x18
push ecx
mov dword [esp + 0x1c], ecx
mov ebx, edx
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x100036cb
mov edi, dword [esp + 0x28]
imul edi, dword [esp + 0x2c]
push edi
call fcn.10023167
pop ecx
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x100036cb
push 0x2c
push esi
push ebx
call fcn.10025220
mov eax, dword [esp + 0x30]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 8], eax
mov ax, word [esp + 0x3c]
mov word [ebx + 0xc], ax
mov ax, word [esp + 0x3e]
mov dword [ebx + 0x14], edi
add esp, 0xc
lea edi, [esp + 0x74]
mov dword [ebx], 0x28
mov word [ebx + 0xe], ax
mov dword [ebx + 0x10], esi
call fcn.10002d3d
mov dword [esp + 0x138], esi
cmp dword [0x1004d568], esi
je 0x1000369f
mov eax, edi
push eax
call fcn.1001b21a
pop ecx
test eax, eax
je 0x1000369f
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.10002d78
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
push dword [esp + 0x20]
call fcn.100033b7
pop ecx
pop ecx
push esi
push 1
lea esi, [esp + 0x60]
call fcn.10001b39
xor esi, esi
push esi
push ebx
push dword [esp + 0x20]
push dword [esp + 0x34]
push esi
push dword [esp + 0x24]
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_GetDIBits]
or dword [esp + 0x138], 0xffffffff
lea esi, [esp + 0x74]
call fcn.10003794
xor esi, esi
cmp dword [esp + 0x14], esi
je 0x1000376a
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [esp + 0x14]
call fcn.10002c1e
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x1000376a
lea eax, [esp + 0x58]
push eax
call fcn.100032d9
pop ecx
test al, al
je 0x10003762
mov dword [esp + 0x38], 1
mov esi, 0x1003f8f0
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x58], 1
push dword [ebx + 4]
mov dword [esp + 0x60], 4
mov dword [esp + 0x20], 0x50
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x10003752
mov dword [ebx + 8], eax
jmp 0x10003754
xor eax, eax
test eax, eax
je 0x10003762
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10022b9f
mov esp, ebp
pop ebp
ret 8