Function at 0x100036ed
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003d70b
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x1004c300]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x1004c300]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 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 + 0x20], esi
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1000387d
mov edi, dword [esp + 0x28]
imul edi, dword [esp + 0x2c]
push edi
call fcn.10024aea
pop ecx
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x1000387d
push 0x2c
push esi
push ebx
call fcn.10026b90
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.10002d54
mov dword [esp + 0x188], esi
cmp dword [0x1004f6c0], esi
je 0x10003814
mov eax, edi
push eax
call fcn.1000f305
pop ecx
test eax, eax
je 0x10003814
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.10002db0
push esi
push dword [esp + 0x28]
lea eax, [esp + 0x40]
push dword [esp + 0x20]
call fcn.10003508
add esp, 0xc
push esi
push 1
lea esi, [esp + 0x40]
call fcn.10001b91
xor esi, esi
cmp dword [0x1004f6c4], esi
je 0x10003851
push dword [ebp + 0x10]
lea ecx, [esp + 0x3c]
push str._f:yhV_
call fcn.1000d2a7
push 1
push dword [esp + 0x30]
lea eax, [esp + 0x48]
push dword [esp + 0x28]
call fcn.10003508
add esp, 0x14
push esi
push 1
lea esi, [esp + 0x40]
call fcn.10001b91
xor esi, esi
push esi
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x34]
push esi
push dword [esp + 0x24]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_GetDIBits]
or dword [esp + 0x188], 0xffffffff
lea esi, [esp + 0x74]
call fcn.10003946
xor esi, esi
cmp dword [esp + 0x1c], esi
je 0x1000391c
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [esp + 0x14]
call fcn.10002c35
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x1000391c
lea eax, [esp + 0x38]
push eax
call fcn.1000342a
pop ecx
test al, al
je 0x10003914
mov dword [esp + 0x54], 1
mov esi, 0x10041900
lea edi, [esp + 0x58]
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 + 0x70], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x74], 1
push dword [ebx + 4]
mov dword [esp + 0x7c], 4
mov dword [esp + 0x20], 0x50
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x10003904
mov dword [ebx + 8], eax
jmp 0x10003906
xor eax, eax
test eax, eax
je 0x10003914
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.10024522
mov esp, ebp
pop ebp
ret 0xc