Function at 0x40b0a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
cmp byte [0x463069], 0
push ebx
push esi
push edi
je 0x40b330
xor ebx, ebx
cmp dword [0x465370], ebx
jne 0x40b330
mov eax, dword [0x465b0c]
mov edi, dword [0x465b08]
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 0xc], eax
jle 0x40b0ec
mov edx, edi
mov esi, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x40b0ec
inc ecx
add edx, 0xc
cmp ecx, eax
jl 0x40b0dd
cmp ecx, eax
je 0x40b330
lea eax, [ecx + ecx*2]
lea edi, [edi + eax*4]
mov eax, dword [0x46535c]
cmp eax, dword [0x463078]
mov esi, dword [edi + 4]
jl 0x40b124
cmp eax, 0x14
jg 0x40b330
mov eax, dword [esi + 4]
mov al, byte [eax]
cmp al, 0xd5
je 0x40b124
cmp al, 0xd0
jne 0x40b330
mov ax, word [edi + 8]
cmp ax, word [edi + 0xa]
jge 0x40b330
cmp dword [0x465164], ebx
jg 0x40b330
mov dword [ebp - 4], ebx
cmp dword [esi + 0x28], ebx
jle 0x40b15f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.0041c658
add esp, 0xc
test eax, eax
je 0x40b330
mov ecx, dword [0x465b20]
push 0x80
call fcn.00401d39
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00438c79
push 0xc8
lea eax, [ebp - 0x158]
push 0x465138
push eax
call fcn.00455650
add esp, 0x18
cmp dword [0x46537c], ebx
je 0x40b1a8
push 0x465b28
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 4]
movzx eax, byte [eax]
push eax
push 1
push ebx
push ebx
call fcn.0040b4ee
add esp, 0x10
push ebx
mov ecx, 0x465c88
call fcn.0040b419
push dword [ebp + 8]
call fcn.0043ad5c
cmp eax, ebx
pop ecx
mov dword [0x4651d4], eax
je 0x40b20d
push eax
call fcn.00431cc3
mov ebx, eax
test ebx, ebx
pop ecx
je 0x40b20b
mov eax, dword [ebx + 8]
push 1
push dword [ebp + 8]
mov dword [0x46517c], eax
mov eax, dword [ebx + 8]
mov ecx, ebx
mov dword [0x465184], eax
call fcn.00431c64
cmp eax, dword [ebx + 0xc]
jae 0x40b20b
mov dword [0x465180], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x40b22e
mov ecx, dword [eax + 0x14]
mov dword [0x465174], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x465178], ecx
mov eax, dword [eax + 0x10]
mov dword [0x465170], eax
cmp dword [esi + 0xc], ebx
jle 0x40b27c
mov eax, dword [esi + 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
call fcn.004018f8
cmp dword [esi + 0xc], 1
jle 0x40b27c
mov eax, dword [esi + 8]
push dword [ebp + 0x14]
mov ecx, dword [eax + 0x10]
call fcn.004018f8
cmp dword [esi + 0xc], 2
jle 0x40b27c
mov eax, dword [esi + 8]
push dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
call fcn.0041c88f
cmp dword [esi + 0xc], 3
jle 0x40b27c
mov eax, dword [esi + 8]
push dword [ebp + 8]
mov ecx, dword [eax + 0x30]
call fcn.0041c88f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x466154], eax
mov dword [0x466150], eax
inc word [edi + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00408a88
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
setne bl
test bl, bl
je 0x40b2b4
push eax
call fcn.00401a7c
pop ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00401c62
push 1
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.0040b337
mov eax, dword [0x465b0c]
add esp, 0x18
cmp eax, dword [ebp - 0xc]
jl 0x40b2fd
mov ecx, dword [ebp + 0xc]
cmp dword [edi], ecx
jne 0x40b2fd
xor eax, eax
mov ax, word [edi + 8]
test ax, ax
je 0x40b32c
dec eax
mov word [edi + 8], ax
jmp 0x40b32c
xor ecx, ecx
test eax, eax
jle 0x40b32c
mov edx, dword [0x465b08]
mov esi, edx
mov edi, dword [ebp + 0xc]
cmp dword [esi], edi
je 0x40b31c
inc ecx
add esi, 0xc
cmp ecx, eax
jl 0x40b30b
jmp 0x40b32c
lea eax, [ecx + ecx*2]
lea eax, [edx + eax*4 + 8]
cmp word [eax], 0
je 0x40b32c
dec word [eax]
mov al, bl
jmp 0x40b332
xor al, al
pop edi
pop esi
pop ebx
leave
ret