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

Disassembly:
mov eax, 0x1b18
call fcn.0041ec80
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x1b14], eax
mov eax, dword [esp + 0x1b1c]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [eax], ebp
xor eax, eax
push 0x208
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1d4]
push ebp
push eax
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.004130d0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x56c]
push ebp
push ecx
call fcn.004130d0
add esp, 0xc
push 0x190
lea edx, [esp + 0x3dc]
push ebp
push edx
call fcn.004130d0
add esp, 0xc
push 0xfa0
lea eax, [esp + 0xb84]
push ebp
push eax
call fcn.004130d0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x97c]
push ebp
push ecx
call fcn.004130d0
add esp, 0xc
push 0x208
lea edx, [esp + 0x774]
push ebp
push edx
call fcn.004130d0
add esp, 0xc
push 0x80
lea eax, [esp + 0x54]
push ebp
push eax
call fcn.004130d0
add esp, 0xc
cmp dword [0x4302c8], ebp
je 0x40b3bc
mov eax, dword [0x4302cc]
cmp eax, ebp
je 0x40b3bc
mov ecx, dword [0x4302d0]
push ecx
call eax
lea edx, [esp + 0x2c]
push edx
call fcn.004055c0
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x18], edi
jne 0x40b4fd
cmp dword [0x431888], ebp
je 0x40b441
push 0x40
push str.FDICreate
push 0x42fde8
mov dword [0x42fde0], 0xffffef2b
call fcn.0040d045
mov eax, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x42fe68], bp
mov dword [0x42fde4], eax
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0xf3f
jmp 0x40b4d8
push 0x104
lea ecx, [esp + 0x97c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x770]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0x42fdd0]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xc8
lea eax, [esp + 0x3dc]
push eax
push 0x31
push ecx
call esi
lea edx, [esp + 0x770]
push edx
lea eax, [esp + 0x97c]
push eax
lea ecx, [esp + 0x3e0]
push ecx
lea edx, [esp + 0xb8c]
push edx
call fcn.0040dcca
mov ecx, dword [0x42fdd0]
add esp, 0x10
push 0x40
lea eax, [esp + 0x54]
push eax
push 0x442
push ecx
call esi
push 0x30
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xb88]
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x4302c8]
cmp eax, ebp
je 0x40b8c9
cmp dword [0x4302cc], ebp
je 0x40b8c9
push 0x4302d0
call eax
jmp 0x40b8c9
mov eax, dword [0x4302c8]
cmp eax, ebp
je 0x40b515
cmp dword [0x4302cc], ebp
je 0x40b515
push 0x4302d0
call eax
push ebp
push 0x8020
push 0x431680
call fcn.0040f57a
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x40b57a
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xffffef2a
mov word [0x42fe68], bp
mov dword [0x42fde4], ebp
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0xf66
jmp 0x40b8c9
mov eax, dword [0x42f9a4]
cmp eax, ebp
je 0x40b594
lea ecx, [esp + 0x38]
push ecx
push esi
push edi
call eax
add esp, 0xc
cmp eax, 1
je 0x40b5e8
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xffffef29
mov word [0x42fe68], bp
mov dword [0x42fde4], ebp
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
push esi
mov word [0x430276], bp
mov dword [0x430278], 0xf6e
call fcn.0040f7ae
add esp, 4
jmp 0x40b8c9
push esi
call fcn.0040f7ae
add esp, 4
xor eax, eax
jmp 0x40b600
movzx ecx, word [eax + 0x431680]
mov word [esp + eax + 0x1d0], cx
add eax, 2
cmp cx, bp
jne 0x40b600
lea edx, [esp + 0x1d0]
push 0x5c
push edx
call fcn.00410ae5
add esp, 8
cmp eax, ebp
jne 0x40b678
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xffffef2c
mov word [0x42fe68], bp
mov dword [0x42fde4], ebp
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0xf7b
jmp 0x40b8c9
add eax, 2
lea esi, [esp + 0x568]
mov ecx, eax
sub esi, eax
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bp
jne 0x40b686
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov word [eax], bp
mov ecx, dword [0x42fdd0]
push 0x40
lea eax, [esp + 0xd4]
push eax
push 3
push ecx
call esi
mov eax, dword [0x42fdd0]
push 0x40
lea edx, [esp + 0x154]
push edx
push 2
push eax
call esi
cmp dword [0x4302a4], ebp
jne 0x40b702
call fcn.004036d0
push eax
push 0x64
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea edi, [esp + 0x15c]
mov ebx, eax
call fcn.00403c30
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [edx], eax
jmp 0x40b708
mov eax, dword [esp + 0x14]
mov dword [eax], ebp
lea esi, [esp + 0x24]
lea eax, [esp + 0x568]
call fcn.004056d0
mov ebx, eax
lea esi, [esp + 0x1c]
lea eax, [esp + 0x1d0]
call fcn.004056d0
mov edx, dword [esp + 0x24]
mov esi, eax
mov ecx, ebx
lea eax, [esp + 0x568]
mov dword [esp + 0x28], esi
call fcn.0040cd70
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea eax, [esp + 0x1d0]
call fcn.0040cd70
mov eax, dword [0x42f9ac]
cmp eax, ebp
je 0x40b77a
mov ecx, dword [esp + 0x14]
push ecx
push 0x40b1f0
push 0x40a100
push ebp
push esi
push ebx
push edi
call eax
add esp, 0x1c
cmp eax, 1
je 0x40b7e9
cmp dword [0x42fde0], ebp
jne 0x40b8c9
push 0x40
push str.FDICopy
push 0x42fde8
mov dword [0x42fde0], 0xffffef2b
call fcn.0040d045
mov edx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x42fe68], bp
mov dword [0x42fde4], edx
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0xfad
jmp 0x40b8c9
mov eax, dword [0x430284]
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 0x414]
je 0x40b845
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xffffef28
mov word [0x42fe68], bp
mov dword [0x42fde4], ebp
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0xfb5
jmp 0x40b8c9
mov esi, dword [ecx]
mov eax, 0x64
call fcn.00403cf0
mov ecx, edi
call fcn.004056a0
cmp eax, 1
je 0x40b8bd
push 0x40
push str.FDIDestroy
push 0x42fde8
mov dword [0x42fde0], 0xffffef2b
call fcn.0040d045
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x42fe68], bp
mov dword [0x42fde4], ecx
mov word [0x43006e], bp
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bp
mov dword [0x430278], 0xfc2
jmp 0x40b8c5
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp eax, ebp
je 0x40b8da
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp ebx, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x40b8f1
push ebx
push ebp
call edi
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40b900
push eax
push ebp
call edi
push eax
call esi
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x40b928
mov eax, dword [0x42f9a8]
cmp eax, ebp
je 0x40b928
push ecx
call eax
add esp, 4
cmp eax, 1
jne 0x40b928
mov eax, dword [0x431888]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x431680
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1b24]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0x1b18
ret