Function at 0x407140
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51367b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x54a050]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov eax, dword [0x54a050]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp esi, dword [0x54ee50]
je 0x40743a
mov ecx, dword [0x9d81c4]
test ecx, ecx
je 0x4071d5
push 1
call fcn.004aa1b4
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Undo_tmp.mop
call fcn.00407ac0
push 0x9d8088
call fcn.00441250
mov ebx, 0x9d8088
call fcn.00440d10
mov ecx, dword [0xa7f2e8]
test ecx, ecx
je 0x4071d5
push 1
call fcn.004aa1b4
mov eax, dword [0x54ee50]
cmp eax, 0xffffffff
je 0x40728f
mov eax, dword [eax*4 + 0x9d7d68]
push str.deutsch
push eax
call fcn.004d2200
add esp, 8
test eax, eax
je 0x40728f
mov eax, dword [esi*4 + 0x9d7d68]
push str.deutsch
push eax
call fcn.004d2200
add esp, 8
test eax, eax
jne 0x407232
mov eax, dword [0x54ee4c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp 0x4072e3
mov ecx, dword [0x54ee4c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esi*4 + 0x9d7d68]
push edx
lea eax, [esp + 0x128]
push str.SPRACHEN.RMK_s.DLL
push eax
call fcn.004d4690
mov ecx, dword [0x9d81dc]
add esp, 0xc
push ecx
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.004d4c80
add esp, 0xc
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x1c]
push edx
jmp 0x4072dd
mov eax, dword [esi*4 + 0x9d7d68]
push eax
lea ecx, [esp + 0x128]
push str.SPRACHEN.RMK_s.DLL
push ecx
call fcn.004d4690
mov edx, dword [0x9d81dc]
add esp, 0xc
push edx
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.004d4c80
add esp, 0xc
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x54ee4c], eax
mov esi, eax
call fcn.004b3cbc
mov dword [eax + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x14], vtable.CMenu.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x240], ebx
call fcn.004b3cbc
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x18]
call fcn.004ad93a
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [edi + 0x20]
push ebx
push 0xe001
push 0x362
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
call fcn.004ad963
mov eax, dword [0x9d81d8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00401a80
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004409d0
cmp dword [0xa7f2e8], ebx
je 0x4073ac
push 0xf02b
call fcn.004ac0dc
cmp eax, ebx
je 0x40739a
push 0xf02b
push eax
mov ecx, 0x54ef94
call fcn.00406400
mov ecx, dword [0x54ef94]
push ecx
mov ecx, dword [0xa7f2e8]
call fcn.004aa135
cmp dword [0x9d81c4], ebx
je 0x4073d0
mov esi, 0x9d8088
call fcn.0043ee00
call fcn.0043e9f0
mov ecx, dword [0x9d81c4]
push 1
call fcn.004aa1b4
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Undo_tmp.mop
call fcn.00407ac0
call fcn.0043d700
cmp eax, ebx
je 0x40740b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Undo_tmp.mop
call fcn.00407ac0
call fcn.00453ad0
push str.Undo_tmp.mop
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x9d8088
call fcn.0043d7b0
mov edx, dword [ebp + 8]
mov dword [esp + 0x240], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [0x54ee50], edx
mov dword [esp + 0x14], vtable.CMenu.0
call fcn.004ad98d
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004d1930
mov esp, ebp
pop ebp
ret 4