Function at 0x45bfd0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1030]
mov eax, 0x1030
call fcn.005f9ca0
push 0xffffffffffffffff
push 0x6226df
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x102c], 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 + 0x1038]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
push 0x653ab8
push eax
call fcn.005fb2bd
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x45c050
push 1
push str.Err_open_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x12f8]
call fcn.004b1ac0
jmp 0x45c084
push esi
push 0x100
lea eax, [ebp + 0xf2c]
push eax
call fcn.005fbce7
add esp, 0xc
test eax, eax
jne 0x45c0ab
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x12f8]
call fcn.004b1ac0
push esi
call fcn.005faf97
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 + 0x102c]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x1030
mov esp, ebp
pop ebp
ret 8
push esi
push 0x100
lea ecx, [ebp + 0xf2c]
push ecx
call fcn.005fbce7
add esp, 0xc
test eax, eax
je 0x45c069
xor bl, bl
mov byte [ebp - 0x16], bl
mov edi, 3
mov eax, edi
mov ecx, 0x65a67c
lea esi, [ebp + 0xf2c]
jmp 0x45c0e0
cmp eax, 4
jb 0x45c0fa
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x45c183
sub eax, 4
add ecx, 4
add esi, 4
jmp 0x45c0e0
test eax, eax
je 0x45c11e
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x45c183
cmp eax, 1
jbe 0x45c11e
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x45c183
cmp eax, 2
jbe 0x45c11e
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x45c183
lea ecx, [ebp - 0x28]
push ecx
push 0x64f53c
lea edx, [ebp + edi + 0xf2c]
push edx
call fcn.005f9f5e
add esp, 0xc
cmp eax, 1
jne 0x45c183
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x28]
cmp eax, 0x800
jge 0x45c151
mov eax, 0x800
mov dword [ebp - 0x28], eax
push eax
call fcn.005cfaa6
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
xor ebx, ebx
cmp edi, ebx
jne 0x45c1a5
push 1
push str.newMemErr_in_DelGP_n
mov ecx, dword [ebp - 0x20]
add ecx, 0x12f8
call fcn.004b1ac0
mov ecx, dword [ebp - 0x1c]
push ecx
jmp 0x45c07c
test bl, bl
jne 0x45c13f
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
mov ecx, dword [ebp - 0x20]
add ecx, 0x12f8
call fcn.004b1ac0
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x45c07c
lea ecx, [ebp - 0x24]
call fcn.004024e0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0059d310
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
push edi
call fcn.005fbce7
add esp, 0xc
test eax, eax
jne 0x45c511
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402550
mov dword [ebp + 0xf08], ebx
mov dword [ebp + 0xf10], ebx
xor ecx, ecx
mov word [ebp + 0xf0c], cx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp + 0xf14]
call fcn.00406ea0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0xf14]
cmp eax, ebx
jne 0x45c230
lea eax, [ebp + 0xf18]
push ebx
push eax
push str._sgrprdb
lea ecx, [ebp + 0xf08]
call fcn.00402190
lea ecx, [ebp + 0xcf8]
call fcn.005c9e70
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xf08]
cmp eax, ebx
jne 0x45c261
lea eax, [ebp + 0xf0c]
push 1
push eax
lea ecx, [ebp + 0xcf8]
call fcn.005cb7d0
test eax, eax
jne 0x45c442
lea ecx, [ebp + 0xcf8]
call fcn.005cad60
test eax, eax
je 0x45c442
cmp dword [ebp + 0xda0], 0x3e8
setg byte [ebp - 0x15]
mov dword [ebp - 0x2c], ebx
xor edi, edi
mov dword [ebp - 0x30], edi
cmp edi, dword [ebp + 0xda0]
jge 0x45c442
lea ecx, [ebp + 0xe40]
call fcn.0045a180
mov byte [ebp - 4], 7
push ebx
lea eax, [ebp + 0xe40]
push eax
push edi
lea ecx, [ebp + 0xcf8]
call fcn.005cba30
test al, al
je 0x45c42d
mov esi, dword [ebp + 0xed8]
cmp esi, ebx
mov eax, esi
jne 0x45c2e9
lea eax, [ebp + 0xedc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45c2f0
sub eax, edx
sar eax, 1
je 0x45c314
cmp esi, ebx
mov eax, esi
jne 0x45c30d
lea eax, [ebp + 0xedc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xeb4]
cmp eax, ebx
jne 0x45c324
lea eax, [ebp + 0xeb8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45c327
sub eax, edx
sar eax, 1
je 0x45c3e6
cmp dword [ebp + 0xe58], ebx
jne 0x45c3e6
mov dword [ebp + 0xf20], ebx
mov dword [ebp + 0xf28], ebx
xor ecx, ecx
mov word [ebp + 0xf24], cx
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0xeb4]
cmp eax, ebx
jne 0x45c371
lea eax, [ebp + 0xeb8]
push ebx
push eax
push 0x64edec
lea ecx, [ebp + 0xf20]
call fcn.00402190
mov eax, dword [ebp + 0xf20]
cmp eax, ebx
jne 0x45c393
lea eax, [ebp + 0xf24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xf20]
cmp eax, ebx
jne 0x45c3aa
lea eax, [ebp + 0xf24]
push 0x5c
push eax
call fcn.005f80fb
add esp, 8
cmp eax, ebx
je 0x45c3d7
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 0xf20]
cmp eax, ebx
jne 0x45c3ce
lea eax, [ebp + 0xf24]
push eax
call fcn.005fd504
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp + 0xf20]
call fcn.004011f0
mov eax, dword [ebp + 0x103c]
mov dword [ebp + 0xaa8], eax
mov dword [ebp + 0xaac], edi
lea ecx, [ebp]
call fcn.005a1560
cmp byte [ebp - 0x15], 0
je 0x45c42d
mov eax, edi
imul eax, eax, 0x5a
cdq
idiv dword [ebp + 0xda0]
cmp eax, dword [ebp - 0x2c]
jle 0x45c42d
mov dword [ebp - 0x2c], eax
push eax
push 0x143e
push 0x111
mov ecx, dword [ebp - 0x20]
call fcn.00401590
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xe40]
call fcn.0045a2d0
inc edi
jmp 0x45c29d
lea ecx, [ebp + 0xcf8]
call fcn.005cb940
mov esi, dword [ebp + 0xf14]
cmp esi, ebx
mov eax, esi
jne 0x45c45f
lea eax, [ebp + 0xf18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45c462
sub eax, edx
sar eax, 1
je 0x45c4a1
cmp esi, ebx
mov eax, esi
jne 0x45c47f
lea eax, [ebp + 0xf18]
push eax
call fcn.004bef70
add esp, 4
mov eax, dword [ebp + 0xf14]
cmp eax, ebx
jne 0x45c498
lea eax, [ebp + 0xf18]
push eax
call fcn.005fd504
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005cfa9b
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005faf97
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 + 0xcf8]
call fcn.005c9fa0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xf14]
call fcn.004011f0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xf08]
call fcn.004011f0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0059d500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402550
mov dword [ebp - 4], 0xffffffff
jmp 0x45c084
lea ecx, [ebp - 0x14]
push ecx
push str.cache
push edi
call fcn.004c3110
add esp, 0xc
test al, al
je 0x45c53e
mov edx, dword [ebp - 0x14]
push edx
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402550
jmp 0x45c1c3
lea eax, [ebp - 0x24]
push eax
push str.tmpFolder
push edi
call fcn.004c3110
add esp, 0xc
test al, al
je 0x45c52d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402550
jmp 0x45c1c3