Function at 0x401a53
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x40c060]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x103
push edi
lea eax, [esp + 0x135]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x13c], bl
call fcn.00401ff0
add esp, 0xc
push edi
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00401ff0
add esp, 0xc
push ebx
push ebx
push ebx
push 0x65
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, ebx
je 0x401ae4
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x1c]
push eax
push 0x40af74
lea esi, [esp + 0x20]
call fcn.004017c4
test eax, eax
jbe 0x401b22
lea eax, [esp + 0x20]
push eax
push 0x40af78
call fcn.004017c4
test eax, eax
jbe 0x401b22
lea eax, [esp + 0x24]
push eax
push 0x40af7c
call fcn.004017c4
cmp eax, 4
je 0x401b5a
cmp dword [esp + 0x10], ebx
je 0x401b32
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push 0x40afd0
push 0x40afd4
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401cdc
lea eax, [esp + 0x18]
push eax
call fcn.00401932
test eax, eax
jne 0x401b85
cmp dword [esp + 0x10], ebx
je 0x401b78
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push 0x40afd0
push 0x40b040
jmp 0x401b3d
lea eax, [esp + 0x18]
push eax
call fcn.00401868
lea eax, [esp + 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401ca1
lea eax, [esp + 0x28]
push eax
push ebx
push 0x40afc0
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x401ca1
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x28]
push str..EXE
push eax
call fcn.004023e0
pop ecx
mov esi, 0x104
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.004023e0
pop ecx
lea ecx, [esp + 0x30]
sub ecx, 4
add eax, ecx
push eax
call fcn.004024ec
add esp, 0xc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
call fcn.004016da
test eax, eax
je 0x401ca1
cmp dword [esp + 0x10], ebx
je 0x401c33
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
add eax, 4
push eax
mov dword [esp + 0x18], eax
call fcn.004023e0
pop ecx
test eax, eax
jbe 0x401c8b
lea eax, [esp + 0x28]
push eax
call fcn.004023e0
pop ecx
mov ecx, edi
sub ecx, eax
push ecx
push 0x40afcc
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004024b2
lea eax, [esp + 0x38]
push eax
call fcn.004023e0
add esp, 0x14
sub edi, eax
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004024b2
add esp, 0x10
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00401cf1
test eax, eax
jne 0x401cc1
cmp dword [esp + 0x10], ebx
je 0x401cb1
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push 0x40afd0
push str.CRC_
jmp 0x401b3d
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x10], ebx
je 0x401cdc
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401d5e
mov esp, ebp
pop ebp
ret