Function at 0x484530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640309
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1044
call fcn.00609d40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
push 0x6cc230
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], ebx
call fcn.0060b21f
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x2c], esi
jne 0x4845a2
push 1
push str.Err_open_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x1100]
call fcn.004be7c0
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 0x100
push ecx
call fcn.0060b525
add esp, 0xc
test eax, eax
jne 0x4845e9
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [edi + 0x1100]
call fcn.004be7c0
push esi
call fcn.0060b038
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 0x100
push edx
call fcn.0060b525
add esp, 0xc
test eax, eax
je 0x4845bb
mov edi, 0x6d0a50
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp - 0x37c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x6d0a50
xor edx, edx
mov eax, ecx
repe cmpsb byte [esi], byte es:[edi]
jne 0x484642
lea ecx, [ebp - 0x48]
lea edx, [ebp + eax - 0x37c]
push ecx
push 0x6c91b4
push edx
call fcn.0060a0d0
add esp, 0xc
cmp eax, 1
je 0x484660
mov eax, dword [ebp - 0x28]
push 1
push str.Corrupted_igp_file_in_CDDlg::DelGP_n
lea ecx, [eax + 0x1100]
call fcn.004be7c0
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x4845ce
mov eax, dword [ebp - 0x48]
cmp eax, 0x800
jge 0x484672
mov eax, 0x800
mov dword [ebp - 0x48], eax
push eax
call fcn.00622acb
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x60], esi
jne 0x4846a2
mov edx, dword [ebp - 0x28]
push 1
push str.newMemErr_in_DelGP_n
lea ecx, [edx + 0x1100]
call fcn.004be7c0
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4845ce
mov ecx, dword [0x6f7b78]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x1054]
mov byte [ebp - 4], 1
call fcn.005c6b60
mov edi, dword [ebp - 0x2c]
mov edx, dword [0x6f7b78]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x48]
push edi
push eax
push esi
mov byte [ebp - 4], 3
call fcn.0060b525
add esp, 0xc
test eax, eax
jne 0x484b16
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00622d8a
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x54], bx
mov ecx, dword [ebp - 0x4c]
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.004027e0
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x48471f
lea eax, [ebp - 0x34]
mov edx, str._sgrprdb
test edx, edx
je 0x4847f1
cmp eax, ebx
je 0x4847f1
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x20], bx
call fcn.00401f20
mov bl, 6
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x44]
call fcn.004027c0
push 0
push str._sgrprdb
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.004027e0
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x58], edx
je 0x4847d8
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.00401f10
push eax
lea ecx, [ebp - 0x44]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x58]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x44]
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.005fa000
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x48480a
lea eax, [ebp - 0x54]
push 1
push eax
lea ecx, [ebp - 0x27c]
call fcn.005fa2e0
cmp eax, ebx
jne 0x484b6a
lea ecx, [ebp - 0x27c]
call fcn.005fc6b0
cmp eax, ebx
je 0x484b6a
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 0x484b6a
mov eax, dword [0x6f7b78]
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.004027c0
lea ecx, [ebp - 0xc0]
call fcn.004027c0
mov eax, dword [0x6f7b78]
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.004027c0
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x134], 0x65b4ec
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.005fa550
test al, al
je 0x484b01
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
jne 0x484920
lea eax, [ebp - 0x98]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x484944
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
jne 0x48493d
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc0]
cmp eax, ebx
jne 0x484954
lea eax, [ebp - 0xbc]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x484aaf
cmp dword [ebp - 0x11c], ebx
jne 0x484aaf
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 0x484991
lea ecx, [ebp - 0xbc]
mov edx, 0x6c910c
test edx, edx
je 0x484a63
cmp ecx, ebx
je 0x484a63
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x40], bx
call fcn.00401f20
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.00401070
lea ecx, [ebp - 0x6c]
call fcn.004027c0
push ebx
push 0x6c910c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call fcn.004027e0
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x24], edx
je 0x484a48
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 - 0x44]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xb
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.00401070
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x484a6a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x484a7b
lea eax, [ebp - 0x20]
push 0x5c
push eax
call fcn.00609ba3
add esp, 8
cmp eax, ebx
je 0x484aa0
mov word [eax], bx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x484a97
lea eax, [ebp - 0x20]
push eax
call fcn.0060c764
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 - 0x1054]
mov dword [ebp - 0x5cc], edx
mov dword [ebp - 0x5c8], esi
call fcn.005d21a0
mov al, byte [ebp - 0x15]
test al, al
je 0x484b01
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 0x484b01
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.00483aa0
inc esi
jmp 0x484847
lea ecx, [ebp - 0x14]
push ecx
push str.cache
push esi
call fcn.004de2b0
add esp, 0xc
test al, al
je 0x484b47
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.00622d8a
jmp 0x4846bd
lea eax, [ebp - 0x4c]
push eax
push str.tmpFolder
push esi
call fcn.004de2b0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00622d8a
jmp 0x4846bd
lea ecx, [ebp - 0x27c]
call fcn.005fc110
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x484b7f
lea eax, [ebp - 0x34]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x484bb2
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x484b96
lea eax, [ebp - 0x34]
push eax
call fcn.004e2680
mov eax, dword [ebp - 0x38]
add esp, 4
cmp eax, ebx
jne 0x484ba9
lea eax, [ebp - 0x34]
push eax
call fcn.0060c764
add esp, 4
mov edx, dword [ebp - 0x60]
push edx
call fcn.00622af4
mov eax, dword [ebp - 0x2c]
add esp, 4
push eax
call fcn.0060b038
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.005fa1a0
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 - 0x1054]
mov byte [ebp - 4], 1
call fcn.005c6d50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8