Function at 0x40fdd1
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
mov eax, dword [0x47f880]
shl edi, 2
mov esi, ecx
add eax, edi
push eax
mov ecx, 0x47f0b8
call fcn.0041b99b
mov eax, dword [0x47f880]
lea ecx, [edi + eax]
call fcn.0041de81
xor edi, edi
mov dword [ebp + 8], eax
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40fe40
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x410020
mov ecx, esi
call fcn.004107f2
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], edi
push dword [ebp - 0x10]
push ebx
call fcn.00410cf1
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x10], edi
jl 0x410020
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [0x47f270]
cdq
sub eax, edx
mov dword [ebp - 0x34], edi
mov ecx, eax
mov eax, dword [0x47f274]
cdq
sub eax, edx
lea edi, [ebp - 0x30]
mov ebx, eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x47f888]
sar ecx, 1
sar ebx, 1
test eax, eax
jne 0x40feec
mov eax, dword [0x47f8a0]
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
sar edi, 1
sub eax, edi
add edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [0x47f8a4]
cdq
sub eax, edx
mov edx, ebx
sar eax, 1
sub edx, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edx
add eax, ebx
jmp 0x40ff46
cmp eax, 1
jne 0x40fef8
mov eax, dword [0x47f8a0]
jmp 0x40ff0d
cmp eax, 2
jne 0x40ff17
mov eax, dword [0x47f270]
mov ecx, eax
sub ecx, dword [0x47f8a0]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x47f8a4]
jmp 0x40ff46
cmp eax, 3
jne 0x40ff23
mov eax, dword [0x47f8a0]
jmp 0x40ff33
mov eax, dword [0x47f270]
mov ecx, eax
sub ecx, dword [0x47f8a0]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x47f274]
mov ecx, eax
sub ecx, dword [0x47f8a4]
mov dword [ebp - 0x30], ecx
push dword [0x47f894]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push dword [0x47f890]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [0x47f88c]
xor edi, edi
cmp eax, edi
jne 0x40ff98
mov eax, dword [ebp - 0x2c]
mov ecx, dword [esi]
sub eax, dword [ebp - 0x34]
shr ecx, 1
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
mov ecx, dword [esi + 4]
add eax, dword [ebp - 0x34]
shr ecx, 1
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
add eax, dword [ebp - 0x30]
jmp 0x40ffcc
cmp eax, 1
jne 0x40ffa2
mov eax, dword [ebp - 0x34]
jmp 0x40ffac
cmp eax, 2
jne 0x40ffb4
mov eax, dword [ebp - 0x2c]
sub eax, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x30]
jmp 0x40ffcc
cmp eax, 3
jne 0x40ffbe
mov eax, dword [ebp - 0x34]
jmp 0x40ffc3
mov eax, dword [ebp - 0x2c]
sub eax, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [esi + 4]
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.0040f879
test eax, eax
jge 0x40ffe5
push dword [ebp - 8]
call fcn.004260ee
pop ecx
jmp 0x410020
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0xcc0020
push edi
push dword [ebp - 4]
push dword [ebp - 0x14]
push eax
push ecx
push edi
push edi
push eax
push ecx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [0x47f284]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 8]
call fcn.004260ee
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret 4