Function at 0x440730
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5585c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbd4
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x5a5c8c
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
call fcn.0052825f
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x2c], ebx
jne 0x44079f
push 1
push str.Err_open_file_in_CDDlg::DelGP_n
lea ecx, [esi + 0xc68]
call fcn.0045eb80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
lea ecx, [ebp - 0x320]
push pe_nt_image_headers32
push ecx
call fcn.0052834e
add esp, 0xc
test eax, eax
jne 0x4407e6
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [esi + 0xc68]
call fcn.0045eb80
push ebx
call fcn.00528078
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 ebx
lea edx, [ebp - 0x320]
push pe_nt_image_headers32
push edx
call fcn.0052834e
add esp, 0xc
test eax, eax
je 0x4407b8
mov edi, 0x5a90b0
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp - 0x320]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x5a90b0
xor edx, edx
mov eax, ecx
repe cmpsb byte [esi], byte es:[edi]
jne 0x44083f
lea ecx, [ebp - 0x28]
lea edx, [ebp + eax - 0x320]
push ecx
push 0x5a5cf0
push edx
call fcn.005284dc
add esp, 0xc
cmp eax, 1
je 0x440854
mov eax, dword [ebp - 0x20]
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [eax + 0xc68]
jmp 0x4407c5
mov eax, dword [ebp - 0x28]
cmp eax, 0x800
jge 0x440866
mov eax, 0x800
mov dword [ebp - 0x28], eax
push eax
call fcn.0054276d
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x30], esi
jne 0x44088d
mov ecx, dword [ebp - 0x20]
push 1
push str.newMemErr_in_DelGP_n
add ecx, 0xc68
jmp 0x4407c5
mov edx, dword [0x5c2a74]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0xbe0]
mov byte [ebp - 4], 1
call fcn.004ff630
mov bl, 3
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
push ecx
push edx
push esi
mov byte [ebp - 4], bl
call fcn.0052834e
add esp, 0xc
test eax, eax
jne 0x440a93
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push str._sgrprdb
push edx
mov byte [ebp - 4], 4
call fcn.0053afda
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.0051af80
mov eax, dword [ebp - 0x24]
push 1
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.0051b1d0
xor ebx, ebx
cmp eax, ebx
jne 0x440aea
lea ecx, [ebp - 0x220]
call fcn.0051cac0
cmp eax, ebx
je 0x440aea
cmp dword [ebp - 0x178], 0x3e8
setg byte [ebp - 0x15]
xor edi, edi
xor esi, esi
cmp esi, dword [ebp - 0x178]
jge 0x440ae7
mov eax, dword [0x5c2a74]
mov dword [ebp - 0xd8], 0x56b594
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
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 - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0xd8]
push ebx
push ecx
push esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.0051b270
test al, al
je 0x440a7e
mov eax, dword [ebp - 0x5c]
cmp dword [eax - 8], ebx
je 0x4409ca
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x78]
cmp dword [eax - 8], ebx
je 0x440a30
cmp dword [ebp - 0xc0], ebx
jne 0x440a30
mov edx, dword [0x5c2a74]
mov dword [ebp - 0x14], edx
push eax
lea eax, [ebp - 0x14]
push 0x5a3e24
push eax
mov byte [ebp - 4], 7
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x14]
push 0x5c
push edx
call fcn.00526d20
add esp, 8
cmp eax, ebx
je 0x440a24
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00529006
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.005421be
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x44c], ecx
lea ecx, [ebp - 0xbe0]
call fcn.00504dc0
mov al, byte [ebp - 0x15]
test al, al
je 0x440a7e
lea eax, [esi + esi*4]
lea eax, [eax + eax*8]
shl eax, 1
cdq
idiv dword [ebp - 0x178]
cmp eax, edi
jle 0x440a7e
mov edx, dword [ebp - 0x20]
mov edi, eax
push eax
push 0x143e
mov eax, dword [edx + 0x1c]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.0043fb90
inc esi
jmp 0x440947
lea eax, [ebp - 0x14]
push eax
push str.cache
push esi
call fcn.00473af0
add esp, 0xc
test al, al
je 0x440ac4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005421be
jmp 0x4408a7
lea edx, [ebp - 0x1c]
push edx
push str.tmpFolder
push esi
call fcn.00473af0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005421be
jmp 0x4408a7
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x220]
call fcn.0051c830
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 0x440b1b
push edx
call fcn.004769a0
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call fcn.00529006
add esp, 4
push esi
call fcn.00542796
mov edx, dword [ebp - 0x2c]
add esp, 4
push edx
call fcn.00528078
mov eax, dword [ebp + 8]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0051b0b0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005421be
lea ecx, [ebp - 0xbe0]
mov byte [ebp - 4], 1
call fcn.004ff780
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8