Function at 0x40a4e0
Capabilities:
Set current directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471f4b
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x4058
call fcn.0044cf20
mov eax, dword [0x491130]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x4018]
mov edi, dword [ebx + 0x10]
push 0x2000
push 0
push eax
mov dword [ebp - 0x405c], esi
call fcn.0044e240
add esp, 0xc
lea eax, [ebp - 0x2018]
push 0x2000
push 0
push eax
call fcn.0044e240
xorps xmm0, xmm0
mov dword [ebp - 0x4020], 0
xor eax, eax
mov dword [ebp - 0x401c], 7
movups xmmword [ebp - 0x4030], xmm0
mov word [ebp - 0x4030], ax
add esp, 4
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2018]
call fcn.0040d940
add esp, 8
test eax, eax
je 0x40a8c6
cmp eax, 0x103
ja 0x40a8c6
cmp byte [ebx + 0xc], 0
lea ecx, [ebp - 0x2018]
je 0x40a6c4
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a5c0
sub ecx, edx
lea eax, [ebp - 0x2018]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4030]
call fcn.00405eb0
push 0x4863f0
lea ecx, [ebp - 0x4030]
call fcn.00435480
push 0x4863f4
lea ecx, [ebp - 0x4030]
call fcn.00435480
cmp dword [ebp - 0x401c], 8
lea ecx, [ebp - 0x4030]
cmovae ecx, dword [ebp - 0x4030]
call fcn.0040dcc0
cmp dword [edi + 0x10], 0
je 0x40a782
push 0x4863f0
lea ecx, [ebp - 0x4030]
call fcn.00435480
push edi
lea ecx, [ebp - 0x4030]
call fcn.0040ada0
lea eax, [ebp - 0x4054]
mov dword [ebp - 0x4054], 0
push eax
lea eax, [ebp - 0x4030]
mov byte [ebp - 0x4050], 0
push eax
lea eax, [ebp - 0x4060]
mov dword [ebp - 0x404c], 0x486420
push eax
call fcn.00434ec0
mov eax, dword [ebp - 0x4060]
add esp, 0xc
test eax, eax
je 0x40a6a6
cmp eax, 1
je 0x40a6a6
lea eax, [ebp - 0x4054]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x4030]
push eax
call fcn.00434a90
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x401c], 8
lea ecx, [ebp - 0x4030]
cmovae ecx, dword [ebp - 0x4030]
call fcn.0040dcc0
jmp 0x40a782
lea eax, [ebp - 0x4018]
push eax
call fcn.0040d870
add esp, 4
test eax, eax
jne 0x40a752
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x401c]
cmp ecx, 8
jb 0x40a730
mov edx, dword [ebp - 0x4030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a726
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8ef
push ecx
push edx
call fcn.0044b9a2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044b98f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea ecx, [ebp - 0x4018]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a760
sub ecx, edx
lea eax, [ebp - 0x4018]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4030]
call fcn.00405eb0
cmp dword [ebp - 0x401c], 8
lea eax, [ebp - 0x4030]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmovae eax, dword [ebp - 0x4030]
push eax
call edi
test eax, eax
jne 0x40a8b3
lea eax, [ebp - 0x4048]
push eax
lea ecx, [ebp - 0x4030]
call fcn.00436f80
cmp dword [ebp - 0x4034], 8
lea eax, [ebp - 0x4048]
cmovae eax, dword [ebp - 0x4048]
push eax
call edi
mov dword [ebp - 0x4054], 0
mov byte [ebp - 0x4050], 0
mov dword [ebp - 0x404c], 0x486420
lea eax, [ebp - 0x4054]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x4030]
push eax
call fcn.00434a90
add esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4048]
mov ecx, esi
push eax
call fcn.0040a9e0
mov ecx, dword [ebp - 0x4034]
cmp ecx, 8
jb 0x40a857
mov edx, dword [ebp - 0x4048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a84d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8ef
push ecx
push edx
call fcn.0044b9a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x4038], 0
mov dword [ebp - 0x4034], 7
mov word [ebp - 0x4048], ax
mov ecx, dword [ebp - 0x401c]
cmp ecx, 8
jb 0x40a730
mov edx, dword [ebp - 0x4030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a726
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8ef
jmp 0x40a726
lea eax, [ebp - 0x4030]
mov ecx, esi
push eax
call fcn.0040a9e0
jmp 0x40a6f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40a874
call fcn.00451171
int3