Function at 0x415ad0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 8]
sub esp, 0x4a4
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ecx + 0x5c0], edx
cmp eax, ebx
je 0x415af7
mov byte [esp + 0xf], 1
cmp byte [eax], bl
je 0x415afb
mov byte [esp + 0xf], bl
cmp eax, ebx
je 0x415b63
cmp byte [eax], bl
je 0x415b63
push eax
push str.Critical_Error:__s_n_nThe_program_will_exit.
mov esi, 0x400
lea edi, [esp + 0xb8]
call fcn.004723a0
mov eax, dword [0x4ac87c]
mov edx, dword [0x4aa230]
add esp, 8
push 0x10000
push eax
mov ecx, edi
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4aa230]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415b5c
mov ecx, dword [0x4aa230]
push ecx
mov byte [0x4aa22c], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
push 2
call fcn.00409e10
cmp byte [0x4acaa7], bl
jne 0x415d05
cmp byte [ecx + 0x604], bl
je 0x415d05
mov esi, dword [0x4aaa2c]
mov edx, dword [ebp + 0xc]
mov dword [0x4ad4f0], edx
cmp byte [esi + 0x17], bl
jne 0x415b92
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x415b9f
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x415bb8
test byte [esi + 0x15], 4
je 0x415bb3
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
jmp 0x415bc8
cmp al, 2
jne 0x415bc3
call fcn.00401000
jmp 0x415bc8
mov eax, 0x4abb36
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00488180
mov eax, dword [0x4a6920]
inc dword [0x4aa39c]
add eax, 0xf0
mov edi, eax
mov byte [esp + 0xbb], bl
mov ecx, 0x3c
mov esi, 0x4a8ed8
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4a6920], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4ac290
call fcn.00415760
mov dword [0x4ac898], ebx
mov dword [0x4ac89c], ebx
cmp dword [0x4aa3cc], ebx
je 0x415c2f
push 0x4aaa30
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x5b4]
mov edi, dword [0x4a6884]
mov dword [0x4a6884], ebx
mov byte [0x4acaa7], 1
mov byte [esp + 0xe], 1
mov byte [0x4a7dcb], bl
cmp ecx, ebx
je 0x415c6f
call fcn.00401210
test eax, eax
je 0x415c6f
cmp byte [0x4a7dcb], bl
jne 0x415c6f
mov byte [esp + 0xe], bl
mov byte [0x4a7dcb], 1
cmp byte [esp + 0xe], bl
je 0x415cc8
mov dword [esp + 0x18], ebx
call fcn.004428f0
xor ecx, ecx
cmp dword [esi + 0x5b4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [0x4ad4f0]
sete cl
cdq
mov dword [esp + 0x24], edx
lea edx, [esp + 0x10]
lea ebx, [esi + 0x590]
mov dword [esp + 0x28], 1
push ecx
push 2
push edx
mov dword [esp + 0x2c], eax
call fcn.0046db70
xor ebx, ebx
cmp eax, 3
jne 0x415cc8
mov byte [esp + 0xe], bl
mov byte [0x4acaa7], bl
cmp byte [esp + 0xe], bl
jne 0x415cfb
cmp byte [esp + 0xf], bl
jne 0x415cfb
lea eax, [esp + 0x30]
push eax
call fcn.00403650
add esp, 4
mov dword [0x4a6884], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.00415d50
cmp byte [0x4a7dcb], bl
jne 0x415d39
cmp edx, 9
jne 0x415d39
mov edx, dword [0x4aa1d0]
cmp byte [edx], bl
je 0x415d24
mov eax, dword [ebp + 0xc]
mov dword [0x4ad4f0], eax
pop edi
pop esi
mov byte [0x4a7dcb], 1
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push edx
push ecx
call fcn.00415d50
int3