Function at 0x490ad0
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e8438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x20], ebp
cmp eax, ebx
je 0x490d27
mov esi, dword [esp + 0x88]
mov eax, str.LastVisit.ini
cmp esi, ebx
je 0x490b14
mov eax, str.LastClose.ini
push eax
lea ecx, [esp + 0x14]
call fcn.004c57f5
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x52702c
push ecx
mov dword [esp + 0x8c], ebx
call fcn.004c59b6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 1
call fcn.004c58c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], bl
call fcn.004c5787
mov edx, dword [ebp + 0xbc]
push ebx
push ebx
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x24], edi
jne 0x490b89
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x490d13
cmp esi, ebx
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], ebx
mov eax, str.LastVisit
je 0x490ba3
mov eax, str.LastClose
push eax
lea ecx, [esp + 0x18]
call fcn.004c57f5
mov ecx, dword [str.state]
mov eax, dword [str.name]
mov dx, word [0x51c894]
mov dword [esp + 0x44], ecx
mov cl, byte [0x51c88c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x3c], cl
mov ecx, dword [esp + 0x14]
mov word [esp + 0x48], dx
mov edx, dword [0x51c884]
push eax
push ebx
push ecx
mov byte [esp + 0x8c], 2
mov dword [esp + 0x56], ebx
mov dword [esp + 0x49], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
xor esi, esi
cmp edi, ebx
jle 0x490d03
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add ebp, 0xa0
lea edx, [esp + 0x3c]
push 0xa
push edx
push esi
call fcn.004b0136
lea eax, [esp + 0x3f]
push 0xa
push eax
push esi
call fcn.004b0136
add esp, 0x18
lea ecx, [esp + 0x18]
push ebx
push esi
push ecx
mov ecx, ebp
call fcn.004be87a
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x40]
push eax
push ecx
call edi
lea ecx, [esp + 0x18]
call fcn.004c5787
push 1
lea edx, [esp + 0x20]
push esi
push edx
mov ecx, ebp
call fcn.004be87a
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push edx
push eax
call edi
lea ecx, [esp + 0x1c]
call fcn.004c5787
cmp dword [esp + 0x88], ebx
jne 0x490cf6
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x50]
push ecx
push ebx
mov eax, dword [edx + 0xbc]
push 0x1005
push eax
mov dword [esp + 0x64], esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0x6c], 0xa
jg 0x490cf6
lea ecx, [esp + 0x49]
push 0xa
push ecx
push esi
call fcn.004b0136
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x34]
push 0xa
push edx
push eax
call fcn.004b0136
mov ecx, dword [esp + 0x28]
add esp, 0x18
lea edx, [esp + 0x28]
lea eax, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x490c1b
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], bl
call fcn.004c5787
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 4