Function at 0x4b97c0
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push 0x100
mov dword [ebp - 0x30c], eax
mov dword [0x9c25c8], eax
mov dword [eax], vtable.NewApp.0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x18], 0x320
mov dword [eax + 0x1c], 0x258
mov dword [eax + 0x168], 0
mov dword [eax + 0x16c], 0
mov dword [eax + 0x170], 0
mov dword [eax + 0x174], 0
mov dword [eax + 0x178], 0
mov dword [eax + 0x17c], 0
mov dword [eax + 0x180], 0
mov dword [eax + 0x184], 0
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9885
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x4b98a4
cmp byte [ebp + eax - 0x104], 0x5c
je 0x4b9900
dec eax
test eax, eax
jg 0x4b9895
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x1000
push 0
push 0x904f00
call fcn.00468b40
mov eax, 0x200
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x308], eax
xor ecx, ecx
nop word [eax + eax]
mov esi, 0x400
lea ebx, [eax*4]
mov edx, 0x904f00
sub esi, edi
cmp dword [edx], 0
jne 0x4b994f
test ecx, ecx
jne 0x4b9915
mov eax, edi
jmp 0x4b992f
cmp eax, 0x100
jae 0x4b9a86
mov byte [ebp + eax - 0x104], 0
jmp 0x4b98a4
cmp ecx, 1
jne 0x4b9922
lea eax, [esi - 0x200]
jmp 0x4b992f
lea eax, [edi + 0x200]
cmp ecx, 2
je 0x4b992f
mov eax, esi
mov dword [edx], eax
cmp eax, 0x3e7
jle 0x4b993e
mov dword [edx], 0x3e7
lea eax, [ecx + 1]
xor ecx, ecx
cmp eax, 4
cmovl ecx, eax
test ecx, ecx
jne 0x4b994f
inc edi
dec esi
add edx, ebx
cmp edx, 0x905f00
jl 0x4b98f3
mov eax, dword [ebp - 0x308]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x308], eax
jne 0x4b98e0
lea eax, [ebp - 0x304]
mov dword [0x904f00], 0x200
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.WYD.log
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x204]
push str._s_s
push eax
call fcn.00445aa0
lea eax, [ebp - 0x204]
push 0x5ec588
push eax
call fcn.0046c5bd
add esp, 0x18
test eax, eax
je 0x4b99d7
push eax
call fcn.0046bf19
add esp, 4
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x308]
push eax
push 0x80
push 0x40
push 0x8119
push str.WYD.log
call fcn.00476d25
mov ecx, dword [ebp - 0x308]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov dword [0x1ff5a10], ecx
cmp ecx, edx
je 0x4b9a3a
push str.___________________________________________r_n
call fcn.005865a0
push str.____Logging_system_turn_on._r_n
call fcn.005865a0
push str.___mark__r_n
call fcn.005865a0
add esp, 0xc
mov esi, dword [ebp - 0x30c]
push str.EmberTowers
lea ecx, [esi + 0x28]
push ecx
call fcn.00445aa0
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [esi + 0x19c], 1
mov eax, esi
mov byte [esi + 0x1a8], 0
xor ecx, ebp
mov dword [esi + 0x1ac], 0xffffffff
pop edi
mov byte [esi + 0x1a0], 1
pop esi
pop ebx
call fcn.0046676f
mov esp, ebp
pop ebp
ret
call fcn.00466900
int3