Function at 0x45f060
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1050]
mov eax, 0x1050
call fcn.00614970
push 0xffffffffffffffff
push 0x63d4df
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp + 0x104c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0x1058]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
push 0x66fba8
push eax
call fcn.00615f0d
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x45f0e0
push 1
push str.Err_open_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x15c0]
call fcn.004b8c00
jmp 0x45f114
push esi
push 0x100
lea eax, [ebp + 0xf4c]
push eax
call fcn.00616a75
add esp, 0xc
test eax, eax
jne 0x45f13b
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x15c0]
call fcn.004b8c00
push esi
call fcn.00615be7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104c]
xor ecx, ebp
call fcn.00613241
add ebp, 0x1050
mov esp, ebp
pop ebp
ret 8
push esi
push 0x100
lea ecx, [ebp + 0xf4c]
push ecx
call fcn.00616a75
add esp, 0xc
test eax, eax
je 0x45f0f9
xor bl, bl
mov byte [ebp - 0x16], bl
mov edi, 3
mov eax, edi
mov ecx, 0x676970
lea esi, [ebp + 0xf4c]
jmp 0x45f170
cmp eax, 4
jb 0x45f18a
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x45f213
sub eax, 4
add ecx, 4
add esi, 4
jmp 0x45f170
test eax, eax
je 0x45f1ae
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x45f213
cmp eax, 1
jbe 0x45f1ae
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x45f213
cmp eax, 2
jbe 0x45f1ae
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x45f213
lea ecx, [ebp - 0x28]
push ecx
push 0x66b5ec
lea edx, [ebp + edi + 0xf4c]
push edx
call fcn.00614c2e
add esp, 0xc
cmp eax, 1
jne 0x45f213
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x28]
cmp eax, 0x800
jge 0x45f1e1
mov eax, 0x800
mov dword [ebp - 0x28], eax
push eax
call fcn.005e76b2
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
xor ebx, ebx
cmp edi, ebx
jne 0x45f235
push 1
push str.newMemErr_in_DelGP_n
mov ecx, dword [ebp - 0x20]
add ecx, 0x15c0
call fcn.004b8c00
mov ecx, dword [ebp - 0x1c]
push ecx
jmp 0x45f10c
test bl, bl
jne 0x45f1cf
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
mov ecx, dword [ebp - 0x20]
add ecx, 0x15c0
call fcn.004b8c00
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x45f10c
lea ecx, [ebp - 0x24]
call fcn.00402500
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.005ad3a0
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
push edi
call fcn.00616a75
add esp, 0xc
test eax, eax
jne 0x45f5a1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp + 0xf28], ebx
mov dword [ebp + 0xf30], ebx
xor ecx, ecx
mov word [ebp + 0xf2c], cx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp + 0xf34]
call fcn.00406fc0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0xf34]
cmp eax, ebx
jne 0x45f2c0
lea eax, [ebp + 0xf38]
push ebx
push eax
push str._sgrprdb
lea ecx, [ebp + 0xf28]
call fcn.004021b0
lea ecx, [ebp + 0xd18]
call fcn.005db180
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xf28]
cmp eax, ebx
jne 0x45f2f1
lea eax, [ebp + 0xf2c]
push 1
push eax
lea ecx, [ebp + 0xd18]
call fcn.005dcae0
test eax, eax
jne 0x45f4d2
lea ecx, [ebp + 0xd18]
call fcn.005dc070
test eax, eax
je 0x45f4d2
cmp dword [ebp + 0xdc0], 0x3e8
setg byte [ebp - 0x15]
mov dword [ebp - 0x2c], ebx
xor edi, edi
mov dword [ebp - 0x30], edi
cmp edi, dword [ebp + 0xdc0]
jge 0x45f4d2
lea ecx, [ebp + 0xe60]
call fcn.0045d1d0
mov byte [ebp - 4], 7
push ebx
lea eax, [ebp + 0xe60]
push eax
push edi
lea ecx, [ebp + 0xd18]
call fcn.005dcd40
test al, al
je 0x45f4bd
mov esi, dword [ebp + 0xef8]
cmp esi, ebx
mov eax, esi
jne 0x45f379
lea eax, [ebp + 0xefc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f380
sub eax, edx
sar eax, 1
je 0x45f3a4
cmp esi, ebx
mov eax, esi
jne 0x45f39d
lea eax, [ebp + 0xefc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xed4]
cmp eax, ebx
jne 0x45f3b4
lea eax, [ebp + 0xed8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f3b7
sub eax, edx
sar eax, 1
je 0x45f476
cmp dword [ebp + 0xe78], ebx
jne 0x45f476
mov dword [ebp + 0xf40], ebx
mov dword [ebp + 0xf48], ebx
xor ecx, ecx
mov word [ebp + 0xf44], cx
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0xed4]
cmp eax, ebx
jne 0x45f401
lea eax, [ebp + 0xed8]
push ebx
push eax
push 0x66ae98
lea ecx, [ebp + 0xf40]
call fcn.004021b0
mov eax, dword [ebp + 0xf40]
cmp eax, ebx
jne 0x45f423
lea eax, [ebp + 0xf44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xf40]
cmp eax, ebx
jne 0x45f43a
lea eax, [ebp + 0xf44]
push 0x5c
push eax
call fcn.00612d55
add esp, 8
cmp eax, ebx
je 0x45f467
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 0xf40]
cmp eax, ebx
jne 0x45f45e
lea eax, [ebp + 0xf44]
push eax
call fcn.00617f24
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp + 0xf40]
call fcn.004011f0
mov eax, dword [ebp + 0x105c]
mov dword [ebp + 0xac8], eax
mov dword [ebp + 0xacc], edi
lea ecx, [ebp]
call fcn.005b1f50
cmp byte [ebp - 0x15], 0
je 0x45f4bd
mov eax, edi
imul eax, eax, 0x5a
cdq
idiv dword [ebp + 0xdc0]
cmp eax, dword [ebp - 0x2c]
jle 0x45f4bd
mov dword [ebp - 0x2c], eax
push eax
push 0x143e
push 0x111
mov ecx, dword [ebp - 0x20]
call fcn.004015b0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xe60]
call fcn.0045d320
inc edi
jmp 0x45f32d
lea ecx, [ebp + 0xd18]
call fcn.005dcc50
mov esi, dword [ebp + 0xf34]
cmp esi, ebx
mov eax, esi
jne 0x45f4ef
lea eax, [ebp + 0xf38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f4f2
sub eax, edx
sar eax, 1
je 0x45f531
cmp esi, ebx
mov eax, esi
jne 0x45f50f
lea eax, [ebp + 0xf38]
push eax
call fcn.004c6380
add esp, 4
mov eax, dword [ebp + 0xf34]
cmp eax, ebx
jne 0x45f528
lea eax, [ebp + 0xf38]
push eax
call fcn.00617f24
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005e76a7
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00615be7
add esp, 8
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xd18]
call fcn.005db2b0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xf34]
call fcn.004011f0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xf28]
call fcn.004011f0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.005ad5a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
jmp 0x45f114
lea ecx, [ebp - 0x14]
push ecx
push str.cache
push edi
call fcn.004ca5e0
add esp, 0xc
test al, al
je 0x45f5ce
mov edx, dword [ebp - 0x14]
push edx
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x45f253
lea eax, [ebp - 0x24]
push eax
push str.tmpFolder
push edi
call fcn.004ca5e0
add esp, 0xc
test al, al
je 0x45f5bd
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x45f253