Function at 0x510bed
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3766
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0050b1cc
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x510ca7
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x20], eax
push 0x5c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0
je 0x510c69
push 0
push 0
push 0xffff
push 0xff
mov ecx, dword [ebp - 0x44]
call fcn.0050eb90
mov dword [ebp - 0x64], eax
jmp 0x510c70
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], 0
je 0x510c95
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x34], 1
jmp 0x510c9f
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x34], 3
mov eax, dword [ebp - 0x14]
jmp 0x510f65
mov ax, word [ebp + 0x14]
push eax
push 0x2710
push 0
push 0
push 0x45
push 1
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx + 0x3cc]
add ecx, 0x10
call fcn.00403d90
push eax
push 0x603d90
push 0xc8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x60]
call fcn.005072a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x510cf5
xor eax, eax
jmp 0x510f65
mov ecx, dword [ebp - 0x10]
call fcn.005091d4
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 2
je 0x510d08
jmp 0x510d69
push 0x5c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
je 0x510d3d
push 0
push 0
push 0xffff
push 0xff
mov ecx, dword [ebp - 0x4c]
call fcn.0050eb90
mov dword [ebp - 0x6c], eax
jmp 0x510d44
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x34], 2
mov eax, dword [ebp - 0x14]
jmp 0x510f65
push 0x5c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x54], 0
je 0x510da0
push 0
push 0
mov cx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0050eb90
mov dword [ebp - 0x70], eax
jmp 0x510da7
mov dword [ebp - 0x70], 0
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x14], edx
push 0
push 0x45
push 1
push 0x603d94
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 2
mov ecx, dword [ebp - 0x14]
call fcn.0050ef0c
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], 1
xor eax, eax
cmp dword [ebp + 0x10], 0xffffffff
setne al
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
movzx ax, byte [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x390
call sub.MFC42.DLL_CMapWordToPtr::operator__
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dx, word [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x3ac
call sub.MFC42.DLL_CMapWordToPtr::operator__
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x60]
call dword [edx + 0x90]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
je 0x510e5c
push 1
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x58]
call dword [eax + 4]
mov dword [ebp - 0x74], eax
jmp 0x510e63
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x18]
push ecx
mov dx, word [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x20
call sub.MFC42.DLL_CMapWordToPtr::Lookup
test eax, eax
je 0x510ea1
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x20
call sub.MFC42.DLL_CMapWordToPtr::RemoveKey
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 1
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.00510b19
cmp dword [ebp + 0x10], 0xffffffff
je 0x510f63
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
je 0x510ec1
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x10], 0
jne 0x510f5e
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x38c], 0
jne 0x510f5e
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x384], 0
je 0x510eef
int3
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [ebp - 0x38], 0x12
jne 0x510f11
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
jmp 0x510f65
cmp dword [ebp - 0x38], 0x112
jne 0x510f45
mov edx, dword [ebp - 0x34]
and edx, 0xfff0
cmp edx, 0xf060
jne 0x510f45
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x510f65
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x510eab
mov eax, dword [ebp - 0x14]
jmp 0x510f65
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