Function at 0x40a480
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44976c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x28]
call fcn.00409050
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00408d00
cmp dword [eax + 0x14], 0x10
jb 0x40a4cb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x40a506
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a4fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a820
push edx
push ecx
call fcn.0041cf4a
add esp, 8
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x462d88
call fcn.004172e0
lea ecx, [ebp - 0xd4]
call fcn.00405d40
add esp, 0x18
push eax
push 0x458d40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
mov ecx, esp
push 0x4632f8
call fcn.004172e0
lea ecx, [ebp - 0x44]
call fcn.00405d40
add esp, 0x18
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
sub esp, 0x18
mov ecx, esp
push 0x463208
call fcn.004172e0
lea ecx, [ebp - 0xbc]
call fcn.00405d40
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.00417c00
add esp, 4
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00417b00
add esp, 4
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.00417c00
add esp, 4
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
call fcn.00417ec0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.00417b00
add esp, 4
call fcn.00407510
mov edx, dword [ebp - 0x48]
add esp, 0x18
cmp edx, 0x10
jb 0x40a60c
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a602
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a825
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x40a652
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a648
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a825
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp edx, 0x10
jb 0x40a69b
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a691
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a825
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp edx, 0x10
jb 0x40a6ea
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a825
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp edx, 0x10
jb 0x40a73f
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a735
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a825
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
cmp edx, 0x10
jb 0x40a78e
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a784
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a825
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x40a7d6
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a825
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40a806
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a82a
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
call fcn.0043654a
call fcn.0043654a
call fcn.0043654a
int3