Function at 0x451d90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dc31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xccc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
push 0x639060
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], ebx
call fcn.0056bf3f
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x20], esi
jne 0x451dfd
push 1
push str.Err_open_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0xc78]
call fcn.00478010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [ebp - 0x330]
push pe_nt_image_headers32
push ecx
call fcn.0056c11a
add esp, 0xc
test eax, eax
jne 0x451e44
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0xc78]
call fcn.00478010
push esi
call fcn.0056bd58
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
lea edx, [ebp - 0x330]
push pe_nt_image_headers32
push edx
call fcn.0056c11a
add esp, 0xc
test eax, eax
je 0x451e16
mov edi, 0x63c9c0
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp - 0x330]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x63c9c0
xor edx, edx
mov eax, ecx
repe cmpsb byte [esi], byte es:[edi]
jne 0x451e9d
lea ecx, [ebp - 0x28]
lea edx, [ebp + eax - 0x330]
push ecx
push 0x6390c4
push edx
call fcn.0056c333
add esp, 0xc
cmp eax, 1
je 0x451ebb
mov eax, dword [ebp - 0x24]
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [eax + 0xc78]
call fcn.00478010
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x451e29
mov eax, dword [ebp - 0x28]
cmp eax, 0x800
jge 0x451ecd
mov eax, 0x800
mov dword [ebp - 0x28], eax
push eax
call fcn.00582ecc
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x30], esi
jne 0x451efd
mov edx, dword [ebp - 0x24]
push 1
push str.newMemErr_in_DelGP_n
lea ecx, [edx + 0xc78]
call fcn.00478010
mov eax, dword [ebp - 0x20]
push eax
jmp 0x451e29
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0xcd8]
mov byte [ebp - 4], 1
call fcn.00537e30
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
push esi
mov byte [ebp - 4], 3
call fcn.0056c11a
add esp, 0xc
test eax, eax
jne 0x452119
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00586b33
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push eax
push str._sgrprdb
push ecx
mov byte [ebp - 4], 4
call fcn.0057f8fb
add esp, 0xc
lea ecx, [ebp - 0x230]
call fcn.0055c130
mov edx, dword [ebp - 0x2c]
push 1
push edx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.0055c380
cmp eax, ebx
jne 0x452170
lea ecx, [ebp - 0x230]
call fcn.0055e030
cmp eax, ebx
je 0x452170
cmp dword [ebp - 0x188], 0x3e8
setg byte [ebp - 0x15]
xor edi, edi
xor esi, esi
cmp esi, dword [ebp - 0x188]
jge 0x45216d
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x84], ebx
mov word [ebp - 0x88], bx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], ebx
mov word [ebp - 0x7c], bx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xe8], 0x5bb0e4
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0xe8]
push ebx
push eax
push esi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
call fcn.0055c420
cmp al, bl
je 0x452104
mov eax, dword [ebp - 0x58]
cmp dword [eax - 8], ebx
je 0x452053
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x74]
cmp dword [eax - 8], ebx
je 0x4520b8
cmp dword [ebp - 0xd0], ebx
jne 0x4520b8
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x14], ecx
push eax
lea edx, [ebp - 0x14]
push 0x636fa0
push edx
mov byte [ebp - 4], 7
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x14]
push 0x5c
push ecx
call fcn.0056aa30
add esp, 8
cmp eax, ebx
je 0x4520ac
mov byte [eax], bl
mov edx, dword [ebp - 0x14]
push edx
call fcn.0056d0ab
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00586b33
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xcd8]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], esi
call fcn.0053f210
cmp byte [ebp - 0x15], bl
je 0x452104
lea eax, [esi + esi*4]
lea eax, [eax + eax*8]
shl eax, 1
cdq
idiv dword [ebp - 0x188]
cmp eax, edi
jle 0x452104
mov ecx, dword [ebp - 0x24]
push eax
push 0x143e
push 0x111
mov edx, dword [ecx + 0x1c]
mov edi, eax
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 5
call fcn.004511f0
inc esi
jmp 0x451fb6
lea edx, [ebp - 0x14]
push edx
push str.cache
push esi
call fcn.00490f70
add esp, 0xc
cmp al, bl
je 0x45214a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00586b33
jmp 0x451f15
lea ecx, [ebp - 0x1c]
push ecx
push str.tmpFolder
push esi
call fcn.00490f70
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00586b33
jmp 0x451f15
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x230]
call fcn.0055dda0
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4521a1
push edx
call fcn.00494240
mov eax, dword [ebp - 0x1c]
add esp, 4
push eax
call fcn.0056d0ab
add esp, 4
push esi
call fcn.00582ef5
mov ecx, dword [ebp - 0x20]
add esp, 4
push ecx
call fcn.0056bd58
mov edx, dword [ebp + 8]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.0055c260
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0xcd8]
mov byte [ebp - 4], 1
call fcn.00537f80
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8