Function at 0x412560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4459e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.00443248
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00443248
xor ebx, ebx
mov ecx, 0x45dbc0
push ebx
push 0x44bb30
push 0x44bb2c
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
lea edi, [esi + 0x900]
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push eax
push edi
push esi
call fcn.00412110
mov eax, dword [edi]
add esp, 0xc
cmp eax, ebx
jne 0x412620
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push ebx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040ab00
lea eax, [ebp - 0x14]
push 1
push eax
push 0x45ca00
mov ecx, esi
call fcn.0042c290
push 0x3e7
lea ecx, [ebp - 0x14]
push 0xffff8001
push ecx
mov ecx, esi
mov dword [ebp - 0x1c], 1
call fcn.0041ad20
mov ecx, dword [edi]
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x40], 0xb
mov word [ebp - 0x38], 1
call fcn.00432370
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi]
push eax
call fcn.00431f90
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [edi]
call fcn.00431fb0
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push edx
call fcn.004320b0
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi]
push eax
call fcn.00432610
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [edi]
call fcn.00431ff0
mov eax, dword [esi + 0x20]
mov ecx, dword [edi]
push eax
call fcn.004322d0
mov ecx, esi
call fcn.0042b770
cmp eax, ebx
je 0x4126e1
cmp dword [esi + 0x760], ebx
je 0x4126e1
mov ecx, dword [esi + 0x570]
mov edx, dword [ecx]
call dword [edx + 0x90]
jmp 0x4126ed
mov ecx, dword [0x45dbe0]
push ebx
call sub.MFC42.DLL_CWnd::EnableWindow
cmp dword [esi + 0x7f8], 2
jne 0x41272a
push ebx
push 0x44bb3c
lea eax, [ebp + 0x10]
push 0x44bb2c
push eax
mov ecx, 0x45dbc0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
jmp 0x412773
mov eax, dword [esi + 0x80c]
lea ecx, [esi + 0x80c]
mov edx, dword [eax - 8]
cmp byte [eax + edx - 1], 0x3a
jne 0x41276a
push 0x45c9ec
push ecx
lea ecx, [ebp + 0x10]
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
jmp 0x412773
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
mov ecx, dword [edi]
add esp, 4
call fcn.00432310
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x20], edi
jne 0x41285f
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.0042b770
cmp eax, ebx
je 0x4127cb
cmp dword [esi + 0x760], ebx
je 0x4127cb
mov ecx, dword [esi + 0x570]
mov edx, dword [ecx]
call dword [edx + 0x94]
mov ecx, esi
call fcn.00412340
jmp 0x41285f
mov ecx, dword [0x45dbe0]
push 1
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, esi
call fcn.00412340
jmp 0x41285f
mov dword [ebp - 4], 3
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10