Function at 0x45b840
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd4f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf68
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
push 0x65e408
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], ebx
call fcn.0058aa8f
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x2c], esi
jne 0x45b8ad
push 1
push str.Err_open_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x10b0]
call fcn.00484af0
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 - 0x37c]
push pe_nt_image_headers32
push ecx
call fcn.0058ac9a
add esp, 0xc
test eax, eax
jne 0x45b8f4
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x10b0]
call fcn.00484af0
push esi
call fcn.0058a8a8
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 - 0x37c]
push pe_nt_image_headers32
push edx
call fcn.0058ac9a
add esp, 0xc
test eax, eax
je 0x45b8c6
mov edi, 0x66205c
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp - 0x37c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x66205c
xor edx, edx
mov eax, ecx
repe cmpsb byte [esi], byte es:[edi]
jne 0x45b94d
lea ecx, [ebp - 0x40]
lea edx, [ebp + eax - 0x37c]
push ecx
push 0x65e490
push edx
call fcn.0058aedc
add esp, 0xc
cmp eax, 1
je 0x45b96b
mov eax, dword [ebp - 0x28]
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [eax + 0x10b0]
call fcn.00484af0
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x45b8d9
mov eax, dword [ebp - 0x40]
cmp eax, 0x800
jge 0x45b97d
mov eax, 0x800
mov dword [ebp - 0x40], eax
push eax
call fcn.005a1be9
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x60], esi
jne 0x45b9ad
mov edx, dword [ebp - 0x28]
push 1
push str.newMemErr_in_DelGP_n
lea ecx, [edx + 0x10b0]
call fcn.00484af0
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x45b8d9
mov ecx, dword [0x682f9c]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0xf74]
mov byte [ebp - 4], 1
call fcn.00553e80
mov edi, dword [ebp - 0x2c]
mov edx, dword [0x682f9c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x40]
push edi
push eax
push esi
mov byte [ebp - 4], 3
call fcn.0058ac9a
add esp, 0xc
test eax, eax
jne 0x45be0e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005a584d
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x54], bx
mov ecx, dword [ebp - 0x3c]
push ebx
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x34], bx
call fcn.00402800
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x45ba2a
lea eax, [ebp - 0x34]
mov edx, str._sgrprdb
test edx, edx
je 0x45baf2
cmp eax, ebx
je 0x45baf2
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x20], bx
call fcn.00401ee0
mov bl, 6
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00401070
push str._sgrprdb
lea ecx, [ebp - 0x4c]
call fcn.00401e50
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401ed0
push eax
call fcn.00589432
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x58], edx
je 0x45bad9
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x24]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x58]
push esi
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00589432
add esp, 0x14
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00401070
xor ebx, ebx
lea ecx, [ebp - 0x27c]
call fcn.00579d00
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x45bb0b
lea eax, [ebp - 0x54]
push 1
push eax
lea ecx, [ebp - 0x27c]
call fcn.00579fe0
cmp eax, ebx
jne 0x45be62
lea ecx, [ebp - 0x27c]
call fcn.0057c450
cmp eax, ebx
je 0x45be62
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x14], ebx
cmp eax, 0x3e8
setg byte [ebp - 0x15]
xor esi, esi
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x5c], esi
cmp esi, eax
jge 0x45be62
mov eax, dword [0x682f9c]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd0], ebx
mov word [ebp - 0xd4], bx
call fcn.00415090
lea ecx, [ebp - 0xc0]
call fcn.00415090
mov eax, dword [0x682f9c]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
call fcn.00415090
mov eax, dword [0x682f9c]
mov dword [ebp - 0x134], 0x5dc51c
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
lea edx, [ebp - 0x134]
push ebx
push edx
push esi
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 9
call fcn.0057a250
test al, al
je 0x45bdf9
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
jne 0x45bc21
lea eax, [ebp - 0x98]
push eax
call fcn.00589432
add esp, 4
test eax, eax
je 0x45bc45
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
jne 0x45bc3e
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc0]
cmp eax, ebx
jne 0x45bc55
lea eax, [ebp - 0xbc]
push eax
call fcn.00589432
add esp, 4
test eax, eax
je 0x45bda7
cmp dword [ebp - 0x11c], ebx
jne 0x45bda7
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], bx
mov ecx, dword [ebp - 0xc0]
mov byte [ebp - 4], 0xa
cmp ecx, ebx
jne 0x45bc92
lea ecx, [ebp - 0xbc]
mov edx, 0x65bf6c
test edx, edx
je 0x45bd5b
cmp ecx, ebx
je 0x45bd5b
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x48], bx
call fcn.00401ee0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.00401070
push 0x65bf6c
lea ecx, [ebp - 0x6c]
call fcn.00401e50
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00401ed0
push eax
call fcn.00589432
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005a1be9
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x24], edx
je 0x45bd40
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x24]
push esi
push eax
call fcn.005893c2
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00589432
add esp, 0x14
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xb
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00401070
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x45bd62
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x45bd73
lea eax, [ebp - 0x20]
push 0x5c
push eax
call fcn.00589382
add esp, 8
cmp eax, ebx
je 0x45bd98
mov word [eax], bx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x45bd8f
lea eax, [ebp - 0x20]
push eax
call fcn.0058badb
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.00401070
mov esi, dword [ebp - 0x5c]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0xf74]
mov dword [ebp - 0x5b4], edx
mov dword [ebp - 0x5b0], esi
call fcn.0055b7e0
mov al, byte [ebp - 0x15]
test al, al
je 0x45bdf9
lea eax, [esi + esi*4]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + eax*8]
shl eax, 1
cdq
idiv dword [ebp - 0x1d4]
cmp eax, ecx
jle 0x45bdf9
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [ebp - 0x28]
push 0x143e
push 0x111
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 8
call fcn.0045ac50
inc esi
jmp 0x45bb48
lea ecx, [ebp - 0x14]
push ecx
push str.cache
push esi
call fcn.004a0460
add esp, 0xc
test al, al
je 0x45be3f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005a584d
jmp 0x45b9c8
lea eax, [ebp - 0x3c]
push eax
push str.tmpFolder
push esi
call fcn.004a0460
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005a584d
jmp 0x45b9c8
lea ecx, [ebp - 0x27c]
call fcn.0057be10
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x45be77
lea eax, [ebp - 0x34]
push eax
call fcn.00589432
add esp, 4
test eax, eax
je 0x45beaa
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x45be8e
lea eax, [ebp - 0x34]
push eax
call fcn.004a41e0
mov eax, dword [ebp - 0x38]
add esp, 4
cmp eax, ebx
jne 0x45bea1
lea eax, [ebp - 0x34]
push eax
call fcn.0058badb
add esp, 4
mov edx, dword [ebp - 0x60]
push edx
call fcn.005a1c12
mov eax, dword [ebp - 0x2c]
add esp, 4
push eax
call fcn.0058a8a8
mov ecx, dword [ebp + 8]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 5
call fcn.00579ea0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0xf74]
mov byte [ebp - 4], 1
call fcn.00554010
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.005a584d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8