Function at 0x414a40
Capabilities:
Set current directory

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
test ebx, ebx
je 0x414ab4
cmp word [ebx], 0
jne 0x414aad
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
push ebx
push 0x80
push edi
call esi
cmp word [ebx], 0
je 0x414ed2
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x414a9e
cmp word [eax], 0
je 0x414a9e
mov word [eax], 0
push 1
push 0
push ebx
call fcn.00422ac0
add esp, 0xc
jmp 0x414ab4
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebp, dword [esp + 0x118]
test ebp, ebp
je 0x414ed2
mov edi, dword [esp + 0x124]
test edi, edi
je 0x414ae2
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x1598]
push ecx
push edi
push 0x80
push edx
call esi
mov eax, dword [esp + 0x128]
test eax, eax
je 0x414b01
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x17a0]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x130]
test eax, eax
je 0x414b20
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x1db8]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x414b3f
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x25dc]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x144]
test eax, eax
je 0x414b5e
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x23d4]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x414b7d
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x27e4]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x154]
test eax, eax
je 0x414b9c
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x29ec]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x158]
test eax, eax
je 0x414bbb
lea ecx, [esp + 0x10]
lea edx, [ebp + 0x4670]
push ecx
push eax
push 0x80
push edx
call esi
test edi, edi
je 0x414bd5
lea edi, [ebp + 0x1598]
push edi
call fcn.00423900
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x138]
test eax, eax
je 0x414bf2
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x80
push str.Alarm.ini
call esi
test ebx, ebx
je 0x414bfd
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [esp + 0x140]
mov esi, dword [esp + 0x12c]
test ebx, ebx
jne 0x414c38
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x414c38
mov eax, dword [esp + 0x150]
test eax, eax
jne 0x414c38
mov eax, dword [esp + 0x15c]
test eax, eax
jne 0x414c38
test esi, esi
je 0x414dd7
lea edi, [ebp + 0x19a8]
push 3
push 0x42e5f0
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x414cf9
push eax
push 0x43be64
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x414cf2
mov eax, dword [esp + 0x138]
test eax, eax
je 0x414cf2
cmp word [eax], 0
je 0x414cf2
push 0x100
lea ebx, [ebp + 0x1bb0]
push esi
push 0x43be64
push ebx
push edi
call fcn.00414ee0
add esp, 0x14
test al, 8
je 0x414cb4
push 0x100
push esi
push 0x43be64
push ebx
push edi
call fcn.00414ee0
add esp, 0x14
test eax, 0xfffffffb
push 0
push 0
je 0x414cd5
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00406180
add esp, 8
push eax
push esi
push 0xffffffffffffffff
push 0
jmp 0x414cdc
push 0
push esi
push 0xffffffffffffffff
push 7
push 0x325
call fcn.004247e0
mov ebx, dword [esp + 0x15c]
add esp, 0x1c
jmp 0x414d04
push 0x43be64
jmp 0x414cfa
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
test esi, esi
je 0x414d9e
cmp word [esi], 0
je 0x414d9e
push esi
call fcn.00423900
add esp, 4
test ebx, ebx
je 0x414d3e
mov edi, dword [esp + 0x120]
push esi
lea eax, [ebp + 0x25dc]
push edi
push eax
push ebx
call fcn.00423fa0
add esp, 0x10
jmp 0x414d45
mov edi, dword [esp + 0x120]
mov eax, dword [esp + 0x148]
test eax, eax
je 0x414d62
push esi
lea ecx, [ebp + 0x23d4]
push edi
push ecx
push eax
call fcn.00423fa0
add esp, 0x10
mov eax, dword [esp + 0x150]
test eax, eax
je 0x414d7f
push esi
lea edx, [ebp + 0x27e4]
push edi
push edx
push eax
call fcn.00423fa0
add esp, 0x10
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x414dd7
push esi
lea ecx, [ebp + 0x4670]
push edi
push ecx
push eax
call fcn.00423fa0
add esp, 0x10
jmp 0x414dd7
test ebx, ebx
je 0x414da7
mov word [ebx], 0
mov eax, dword [esp + 0x148]
test eax, eax
je 0x414db7
mov word [eax], 0
mov eax, dword [esp + 0x150]
test eax, eax
je 0x414dc7
mov word [eax], 0
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x414dd7
mov word [eax], 0
mov edi, dword [esp + 0x134]
test edi, edi
je 0x414ed2
lea esi, [ebp + 0x1fc4]
push 3
push 0x42e5f0
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x414ec7
push eax
push 0x43bc5c
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x414ec0
mov eax, dword [esp + 0x138]
test eax, eax
je 0x414ec0
cmp word [eax], 0
je 0x414ec0
push 0x200
lea ebx, [ebp + 0x21cc]
push edi
push 0x43bc5c
push ebx
push esi
call fcn.00414ee0
add esp, 0x14
test al, 8
je 0x414e6a
push 0x200
push edi
push 0x43bc5c
push ebx
push esi
call fcn.00414ee0
add esp, 0x14
test eax, 0xfffffffb
push 0
push 0
je 0x414ea1
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00406180
add esp, 8
push eax
push edi
push 0xffffffffffffffff
push 0
push 0x327
call fcn.004247e0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push 0
push edi
push 0xffffffffffffffff
push 7
push 0x327
call fcn.004247e0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push 0x43bc5c
jmp 0x414ec8
push esi
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret