Function at 0x494a90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e95f6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0xa4]
push ebp
call fcn.004945f0
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
mov ecx, ebx
mov esi, eax
call fcn.00494dd0
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], eax
mov word [esp + 0x44], ax
mov byte [esp + 0x9c], 1
lea edx, [esp + 0x2c]
xor ecx, ecx
call fcn.00487010
test al, al
je 0x494d29
cmp dword [esp + 0x3c], 0
je 0x494d29
mov edx, 0x4fff04
lea ecx, [esp + 0x2c]
call fcn.00495820
cmp dword [esp + 0x3c], 0
je 0x494b83
push 0x5c
push 1
lea ecx, [esp + 0x34]
call fcn.00495d60
push 0xe
push 0x4ffe2c
lea ecx, [esp + 0x34]
call fcn.00479c40
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x10]
cmovae eax, dword [esp + 0x2c]
push eax
push esi
call fcn.00494720
lea edx, [esp + 0x44]
xor ecx, ecx
call fcn.00487010
test al, al
je 0x494d2d
cmp dword [esp + 0x54], 0
je 0x494d2d
mov edx, 0x4fff04
lea ecx, [esp + 0x44]
call fcn.00495820
cmp dword [esp + 0x54], 0
je 0x494bec
push 0x5c
push 1
lea ecx, [esp + 0x4c]
call fcn.00495d60
push 0x4ffe0c
lea ecx, [esp + 0x48]
call fcn.00479c00
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x9c], 4
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov byte [esp + 0x9c], 5
lea edx, [esp + 0x2c]
push 0
lea ecx, [esp + 0x18]
call fcn.00498120
add esp, 4
mov byte [esp + 0x9c], 6
lea ecx, [esp + 0x5c]
push eax
call fcn.004922f0
mov byte [esp + 0x9c], 5
lea ecx, [esp + 0x14]
call fcn.004029c0
push 0
lea edx, [esp + 0x48]
lea ecx, [esp + 0x18]
call fcn.00498120
add esp, 4
mov byte [esp + 0x9c], 7
lea ecx, [esp + 0x74]
push eax
call fcn.004922f0
mov byte [esp + 0x9c], 5
lea ecx, [esp + 0x14]
call fcn.004029c0
cmp dword [esp + 0x88], 0x10
lea ecx, [esp + 0x74]
lea eax, [esp + 0x5c]
cmovae ecx, dword [esp + 0x74]
cmp dword [esp + 0x70], 0x10
push ecx
cmovae eax, dword [esp + 0x60]
push eax
call fcn.004949c0
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x9c], 4
lea ecx, [esp + 0x74]
call fcn.004029c0
mov byte [esp + 0x9c], 1
lea ecx, [esp + 0x5c]
call fcn.004029c0
jmp 0x494d2d
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x58], 8
jb 0x494d4f
push dword [esp + 0x44]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov dword [esp + 0x9c], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x494d84
push dword [esp + 0x2c]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004c515f
add esp, 0x90
ret 4