Function at 0x40e438
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x1a4
mov eax, 0x476ec8
call fcn.00442c61
mov esi, dword [ebp + 8]
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040cf2f
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40e469
mov eax, dword [eax]
lea ecx, [ebp - 0x1ac]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - method.Gdiplus::Image.virtual_0], vtable.Gdiplus::Image.0
mov dword [ebp - 0x1ac], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x1a8], eax
push ebx
push 1
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], ebx
call fcn.0040b970
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x1ac]
mov dword [ebp - 0x19c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40e4c1
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x1ac]
mov dword [ebp - 0x190], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40e4ef
mov dword [ebp - 0x1a8], eax
mov edi, dword [ebp - 0x190]
mov eax, dword [ebp - 0x19c]
cmp dword [ebp - 0x19c], edi
ja 0x40e505
mov eax, edi
mov dword [ebp - 0x190], eax
fild dword [ebp - 0x190]
test eax, eax
jns 0x40e51b
fadd qword [0x47d838]
fld qword [0x47d830]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x40e570
mov eax, dword [ebp - 0x19c]
fdivrp st(1)
fild dword [ebp - 0x19c]
test eax, eax
jns 0x40e542
fadd qword [0x47d838]
fmul st(1)
call fcn.004454a6
mov dword [ebp - 0x190], edi
fild dword [ebp - 0x190]
mov dword [ebp - 0x198], eax
test edi, edi
jns 0x40e565
fadd qword [0x47d838]
fmulp st(1)
call fcn.004454a6
mov edi, eax
jmp 0x40e574
fstp st(0)
fstp st(0)
push ebx
push ebx
push edi
push dword [ebp - 0x198]
lea ecx, [ebp - 0x1b0]
call fcn.0040bb79
mov dword [ebp - 0x198], eax
cmp eax, ebx
jne 0x40e5af
push dword [ebp - 0x1ac]
mov dword [ebp - method.Gdiplus::Image.virtual_0], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov al, bl
call fcn.00442ce4
ret
mov eax, 0x1a04
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x20], 0x557cf406
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], 0x739a11d3
mov dword [ebp - 0x16], 0x1ef80000
mov word [ebp - 0x12], 0x2ef3
call fcn.0041cc6a
mov edi, eax
sub esp, 0x1c
mov ecx, esp
lea eax, [esi + 0x3c]
mov dword [ebp - 0x190], esp
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.00425c32
mov eax, dword [edi]
pop ecx
pop ecx
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 3
call fcn.0041cc09
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00425bc8
mov edi, 0x47d818
push edi
mov byte [ebp - 4], 4
call fcn.0044252a
add esp, 0xc
push eax
push edi
lea ecx, [ebp - 0x74]
call fcn.0040c764
push 0x498d34
lea ecx, [ebp - 0x1a0]
call fcn.00421c6c
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x1a0]
push eax
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 5
jae 0x40e66b
lea eax, [ebp - 0x74]
push ecx
mov ecx, esp
mov dword [ebp - 0x190], esp
push eax
call fcn.00409bbf
call fcn.00414de8
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x1a0]
call fcn.00403f05
push eax
lea ecx, [ebp - 0x90]
call fcn.0040cbd3
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 6
call fcn.0040cf2f
add esp, 0xc
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
jae 0x40e6c4
lea eax, [ebp - 0x3c]
mov edi, dword [ebp - 0x198]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x40e6df
mov dword [edi + 8], eax
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0x114]
lea eax, [esi + 4]
push dword [esi + 0x110]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040fd80
mov edi, eax
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 8
call fcn.0040fc8d
push edi
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 4], 9
call fcn.0040cedd
add esp, 0x24
push ebx
push 1
lea ecx, [ebp - 0xc8]
call fcn.0040b970
push ebx
push 1
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xc
call fcn.0040b970
xor eax, eax
push 0xffffffffffffffff
mov word [ebp - 0x58], ax
push ebx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
call fcn.0040c654
push 1
push ebx
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x190], 0x2e
call fcn.0040b845
mov edi, 0x47d824
push edi
mov dword [ebp - 0x190], eax
call fcn.0044252a
pop ecx
push eax
push edi
push dword [ebp - 0x190]
lea ecx, [ebp - 0x58]
call fcn.0040caaf
push 2
pop edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], 1
call fcn.0040ddf4
pop ecx
pop ecx
mov byte [ebp - 0x191], al
mov dword [esi + 0x140], edi
cmp al, bl
je 0x40e818
call fcn.0040d6e3
mov ecx, eax
call fcn.0040f354
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [eax + 0x74]
call fcn.0040c654
call fcn.0040d6e3
mov ecx, eax
call fcn.0040f354
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [eax + 0xac]
call fcn.0040c654
mov ecx, dword [ebp - 0x198]
mov eax, dword [ecx]
xor esi, esi
inc esi
push esi
call dword [eax]
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x40e832
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x7c], 8
mov eax, dword [ebp - 0x90]
jae 0x40e84b
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.0040b970
push ebx
push esi
lea ecx, [ebp - 0xac]
call fcn.0040b970
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040b970
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.0040b970
mov ecx, dword [ebp - 0x1a0]
add ecx, 0xfffffff0
call fcn.0040125c
push ebx
push esi
lea ecx, [ebp - 0x74]
call fcn.0040b970
push ebx
push esi
lea ecx, [ebp - 0xe4]
call fcn.0040bd1a
mov bl, byte [ebp - 0x191]
jmp 0x40e592