Function at 0x4229c0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
test ebp, ebp
je 0x422a36
cmp word [ebp], 0
jne 0x422a2f
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x80
push edi
call esi
cmp word [ebp], 0
je 0x422e55
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x422a20
cmp word [eax], 0
je 0x422a20
mov word [eax], 0
push 1
push 0
push ebp
call fcn.00423bd0
add esp, 0xc
jmp 0x422a36
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [esp + 0x118]
test ebx, ebx
je 0x422e55
mov edi, dword [esp + 0x124]
test edi, edi
je 0x422a64
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x15a0]
push ecx
push edi
push 0x80
push edx
call esi
mov eax, dword [esp + 0x128]
test eax, eax
je 0x422a83
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x17a8]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x130]
test eax, eax
je 0x422aa2
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x1dc0]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x422ac1
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x25e4]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x144]
test eax, eax
je 0x422ae0
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x23dc]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x422aff
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x27ec]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x154]
test eax, eax
je 0x422b1e
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x29f4]
push ecx
push eax
push 0x80
push edx
call esi
mov eax, dword [esp + 0x158]
test eax, eax
je 0x422b3d
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x4678]
push ecx
push eax
push 0x80
push edx
call esi
test edi, edi
je 0x422b74
lea edi, [ebx + 0x15a0]
push edi
call fcn.00424b40
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x138]
test eax, eax
je 0x422b74
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x80
push str.Alarm.ini
call esi
test ebp, ebp
je 0x422b7f
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebp, dword [esp + 0x140]
mov esi, dword [esp + 0x12c]
test ebp, ebp
jne 0x422bba
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x422bba
mov eax, dword [esp + 0x150]
test eax, eax
jne 0x422bba
mov eax, dword [esp + 0x15c]
test eax, eax
jne 0x422bba
test esi, esi
je 0x422d5a
lea edi, [ebx + 0x19b0]
push 3
push 0x437150
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x422c7b
push eax
push 0x518c14
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x422c74
mov eax, dword [esp + 0x138]
test eax, eax
je 0x422c74
cmp word [eax], 0
je 0x422c74
push 0x100
lea ebp, [ebx + 0x1bb8]
push esi
push 0x518c14
push ebp
push edi
call fcn.00422e60
add esp, 0x14
test al, 8
je 0x422c36
push 0x100
push esi
push 0x518c14
push ebp
push edi
call fcn.00422e60
add esp, 0x14
test eax, 0xfffffffb
push 0
push 0
je 0x422c57
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00413160
add esp, 8
push eax
push esi
push 0xffffffffffffffff
push 0
jmp 0x422c5e
push 0
push esi
push 0xffffffffffffffff
push 7
push 0x325
call fcn.004257a0
mov ebp, dword [esp + 0x15c]
add esp, 0x1c
jmp 0x422c86
push 0x518c14
jmp 0x422c7c
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
test esi, esi
je 0x422d20
cmp word [esi], 0
je 0x422d20
push esi
call fcn.00424b40
add esp, 4
test ebp, ebp
je 0x422cc0
mov edi, dword [esp + 0x120]
push esi
lea eax, [ebx + 0x25e4]
push edi
push eax
push ebp
call fcn.00425160
add esp, 0x10
jmp 0x422cc7
mov edi, dword [esp + 0x120]
mov eax, dword [esp + 0x148]
test eax, eax
je 0x422ce4
push esi
lea ecx, [ebx + 0x23dc]
push edi
push ecx
push eax
call fcn.00425160
add esp, 0x10
mov eax, dword [esp + 0x150]
test eax, eax
je 0x422d01
push esi
lea edx, [ebx + 0x27ec]
push edi
push edx
push eax
call fcn.00425160
add esp, 0x10
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x422d5a
push esi
lea ecx, [ebx + 0x4678]
push edi
push ecx
push eax
call fcn.00425160
add esp, 0x10
jmp 0x422d5a
test ebp, ebp
je 0x422d2a
mov word [ebp], 0
mov eax, dword [esp + 0x148]
test eax, eax
je 0x422d3a
mov word [eax], 0
mov eax, dword [esp + 0x150]
test eax, eax
je 0x422d4a
mov word [eax], 0
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x422d5a
mov word [eax], 0
mov edi, dword [esp + 0x134]
test edi, edi
je 0x422e55
lea esi, [ebx + 0x1fcc]
push 3
push 0x437150
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x422e4a
push eax
push 0x518a0c
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x422e43
mov eax, dword [esp + 0x138]
test eax, eax
je 0x422e43
cmp word [eax], 0
je 0x422e43
push 0x200
add ebx, 0x21d4
push edi
push 0x518a0c
push ebx
push esi
call fcn.00422e60
add esp, 0x14
test al, 8
je 0x422ded
push 0x200
push edi
push 0x518a0c
push ebx
push esi
call fcn.00422e60
add esp, 0x14
test eax, 0xfffffffb
push 0
push 0
je 0x422e24
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00413160
add esp, 8
push eax
push edi
push 0xffffffffffffffff
push 0
push 0x327
call fcn.004257a0
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.004257a0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push 0x518a0c
jmp 0x422e4b
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