Function at 0x4bd320
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x543d85
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xbc]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov esi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x28], 0x469080
mov eax, dword [esi + 0x18]
add eax, 3
mov dword [esp + 0xb4], 1
lea edi, [ebx + 0x10]
cmp eax, 0xf
je 0x4bd3c4
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.00477780
test al, al
je 0x4bd3c4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x44], edi
jae 0x4bd3c1
lea eax, [esp + 0x30]
mov byte [eax], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x4bd3d5
lea ecx, [esp + 0x30]
add eax, 3
push eax
push ebx
push ecx
call fcn.00526600
lea edi, [esi + 4]
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x4bd3f1
mov ecx, dword [edi + 4]
jmp 0x4bd3f4
lea ecx, [edi + 4]
cmp dword [esp + 0x44], 0x10
mov edx, dword [esp + 0x30]
jae 0x4bd403
lea edx, [esp + 0x30]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4bd403
cmp dword [esi + 0x18], ebx
jne 0x4bd478
test byte [esp + 0xc4], 1
mov ecx, ebp
je 0x4bd44b
push 0x46921c
call fcn.0047ae40
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x28], 0x469080
jb 0x4bd444
mov eax, dword [esp + 0x30]
push eax
call fcn.005265f5
add esp, 4
mov eax, ebp
jmp 0x4bd84c
push 0x4651d5
call fcn.0047ae40
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x28], 0x469080
jb 0x4bd444
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005265f5
add esp, 4
mov eax, ebp
jmp 0x4bd84c
test byte [esp + 0xc4], 2
jne 0x4bd4a0
push 1
push ebx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov byte [esp + 0x24], 0x20
call fcn.004bb940
mov byte [esp + 0x18], 1
cmp eax, 0xffffffff
jne 0x4bd4a5
mov byte [esp + 0x18], 0
cmp dword [esp + 0x44], 0x10
mov ebp, dword [esp + 0x30]
jae 0x4bd4b4
lea ebp, [esp + 0x30]
mov esi, 0x10
cmp dword [edi + 0x18], esi
jb 0x4bd4c3
mov edi, dword [edi + 4]
jmp 0x4bd4c6
add edi, 4
cmp byte [esp + 0x18], 0
je 0x4bd4d2
mov byte [ebp], 0x22
inc ebp
mov al, byte [edi]
mov cl, byte [edi + 1]
cmp al, cl
jne 0x4bd4df
cmp al, 0x5c
je 0x4bd4e7
cmp al, 0x2f
je 0x4bd4e7
xor bl, bl
jmp 0x4bd4e9
mov bl, 1
mov byte [esp + 0x17], 0
cmp cl, 0x3a
jne 0x4bd503
movsx eax, al
push eax
call fcn.00529347
add esp, 4
mov byte [esp + 0x17], al
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x48], 0x4691e8
mov byte [esp + 0xb4], 2
mov byte [esp + 0x16], 0
test bl, bl
jne 0x4bd57f
test byte [esp + 0xc4], 1
je 0x4bd57f
lea ecx, [esp + 0x48]
call fcn.004bced0
cmp dword [esp + 0x60], 1
jae 0x4bd550
call fcn.00526bf6
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x4bd55e
lea eax, [esp + 0x50]
cmp byte [eax + 1], 0x3a
jne 0x4bd57f
push 0
lea ecx, [esp + 0x4c]
call fcn.00482040
movsx ecx, byte [eax]
push ecx
call fcn.00529347
add esp, 4
mov byte [esp + 0x16], al
mov al, byte [esp + 0x17]
test al, al
je 0x4bd5b0
test byte [esp + 0xc4], 1
je 0x4bd597
cmp al, byte [esp + 0x16]
je 0x4bd5b0
movsx edx, byte [edi]
push edx
call fcn.00529347
mov byte [ebp], al
mov al, byte [esp + 0x1b]
inc ebp
add esp, 4
mov byte [ebp], 0x3a
inc ebp
test byte [esp + 0xc4], 1
je 0x4bd5e8
cmp al, byte [esp + 0x16]
je 0x4bd5e8
mov al, byte [esp + 0x17]
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x20], al
mov byte [esp + 0x21], 0x3a
mov byte [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x48]
call fcn.004bced0
jmp 0x4bd5ed
mov byte [esp + 0x16], 0
movsx esi, byte [esp + 0x17]
mov eax, dword [esp + 0x60]
neg esi
sbb esi, esi
and esi, 2
add esi, edi
test eax, eax
je 0x4bd6ce
cmp eax, 1
jae 0x4bd611
call fcn.00526bf6
mov eax, dword [esp + 0x50]
mov edi, 0x10
cmp dword [esp + 0x64], edi
jae 0x4bd624
lea eax, [esp + 0x50]
cmp byte [eax + 1], 0x3a
jne 0x4bd637
push 2
push 0
lea ecx, [esp + 0x54]
call fcn.004770b0
mov edx, dword [esp + 0x60]
push edx
push esi
lea ecx, [esp + 0x70]
call fcn.00482730
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb8], 3
call fcn.004a6560
test eax, eax
jne 0x4bd68d
mov ecx, dword [esp + 0x60]
mov al, byte [ecx + esi]
test al, al
je 0x4bd684
cmp al, 0x5c
je 0x4bd67e
cmp ecx, 1
jne 0x4bd68d
cmp byte [esp + 0x16], 0
jne 0x4bd68d
inc esi
jmp 0x4bd68d
lea esi, [ecx + esi + 1]
jmp 0x4bd68d
mov byte [ebp], 0x2e
inc ebp
add esi, dword [esp + 0x60]
mov byte [esp + 0xb4], 2
mov dword [esp + 0x68], 0x469080
cmp dword [esp + 0x84], edi
jb 0x4bd6b3
mov ecx, dword [esp + 0x70]
push ecx
call fcn.005265f5
add esp, 4
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
mov edi, dword [esp + 0xc0]
test edi, edi
jne 0x4bd6de
mov edi, accept
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bd6e3
sub eax, edx
mov edx, eax
cmp edx, edi
jle 0x4bd727
xor bl, bl
mov ecx, esi
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4bd725
cmp al, 0x5c
jne 0x4bd6f6
test bl, bl
jne 0x4bd71b
mov eax, dword [0x469228]
mov dword [ebp], eax
mov al, byte [0x46922c]
mov byte [ebp + 4], al
add ebp, 4
mov bl, 1
sub ecx, esi
add edx, ecx
cmp edx, edi
jg 0x4bd6f4
jmp 0x4bd727
mov esi, ecx
mov edx, ebp
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4bd730
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bd740
sub eax, edx
add ebp, eax
mov al, byte [esp + 0x16]
test al, al
je 0x4bd76b
mov byte [esp + 0x1e], cl
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x20], al
mov byte [esp + 0x21], 0x3a
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x18], 0
je 0x4bd777
mov byte [ebp], 0x22
inc ebp
mov byte [ebp], 0
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x4bd78a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x8c]
call fcn.0047ae40
mov esi, dword [esp + 0x20]
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 4]
push ebx
lea edx, [esp + 0x94]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0xc0], 4
mov byte [ecx + 4], bl
call fcn.004787f0
mov ebp, 0x469080
mov edi, 0x10
mov dword [esi], ebp
mov dword [esp + 0x88], ebp
cmp dword [esp + 0xa4], edi
jb 0x4bd7f1
mov eax, dword [esp + 0x90]
push eax
call fcn.005265f5
add esp, 4
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], 0
mov dword [esp + 0x48], ebp
cmp dword [esp + 0x64], edi
jb 0x4bd822
mov ecx, dword [esp + 0x50]
push ecx
call fcn.005265f5
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], 0
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x44], edi
jb 0x4bd84a
mov edx, dword [esp + 0x30]
push edx
call fcn.005265f5
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00526a8a
add esp, 0xa4
ret 0xc