Function at 0x4bc5c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573120
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x59b000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], 0
test ecx, ecx
jne 0x4bc675
test byte [ebp + 0x10], 1
je 0x4bc63f
push 0x445ac4
mov ecx, esi
call fcn.0045e2a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054a992
mov esp, ebp
pop ebp
ret 0xc
call fcn.004bb040
test eax, eax
je 0x4bc64d
add eax, 4
jmp 0x4bc64f
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 4]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004658c0
mov dword [esi], 0x4442f8
jmp 0x4bc61f
lea edi, [ecx + 3]
mov dword [ebp - 0x88], 0
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], edi
call fcn.00545ef6
add esp, 4
mov esi, eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x88], esi
push edi
push 0
push esi
call fcn.0054b440
mov ecx, dword [ebx + 0x14]
add esp, 0xc
add ebx, 4
cmp dword [ebx + 0x14], 0x10
jb 0x4bc6bf
mov eax, dword [ebx]
jmp 0x4bc6c1
mov eax, ebx
push ecx
push eax
push esi
call fcn.0054adf0
add esp, 0xc
test byte [ebp + 0x10], 2
jne 0x4bc6ee
push 1
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], 0x20
push eax
mov ecx, ebx
call fcn.004bd5e0
cmp eax, 0xffffffff
je 0x4bc6ee
mov al, 1
jmp 0x4bc6f0
xor al, al
cmp dword [ebx + 0x14], 0x10
mov edi, esi
mov byte [ebp - 0x18], al
jb 0x4bc6fd
mov ebx, dword [ebx]
test al, al
je 0x4bc707
mov byte [esi], 0x22
lea edi, [esi + 1]
mov cl, byte [ebx]
mov dl, byte [ebx + 1]
cmp cl, dl
jne 0x4bc715
cmp cl, 0x5c
je 0x4bc71e
mov byte [ebp - 0x71], 0
cmp cl, 0x2f
jne 0x4bc722
mov byte [ebp - 0x71], 1
xor al, al
mov dword [ebp - 0x78], eax
cmp dl, 0x3a
jne 0x4bc73b
movsx eax, cl
push eax
call fcn.0054dcc1
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x445ab0
xor cl, cl
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], ecx
cmp byte [ebp - 0x71], cl
jne 0x4bc7a4
test byte [ebp + 0x10], 1
je 0x4bc7a4
lea ecx, [ebp - 0x38]
call fcn.004bcd40
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x34]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + 1], 0x3a
jne 0x4bc7a1
cmp ecx, 0x10
lea eax, [ebp - 0x34]
cmovae eax, edx
movsx eax, byte [eax]
push eax
call fcn.0054dcc1
mov ecx, eax
add esp, 4
mov dword [ebp - 0x7c], ecx
jmp 0x4bc7a4
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
test al, al
je 0x4bc7cd
test byte [ebp + 0x10], 1
je 0x4bc7b5
cmp al, cl
je 0x4bc7cd
movsx eax, byte [ebx]
push eax
call fcn.0054dcc1
mov byte [edi], al
add esp, 4
mov eax, dword [ebp - 0x78]
mov byte [edi + 1], 0x3a
add edi, 2
test byte [ebp + 0x10], 1
je 0x4bc7f5
cmp al, byte [ebp - 0x7c]
je 0x4bc7f5
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1b], 0x3a
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x38]
call fcn.004bcd40
jmp 0x4bc7f9
mov byte [ebp - 0x7c], 0
mov eax, dword [ebp - 0x78]
xor esi, esi
test al, al
mov ecx, 2
cmovne esi, ecx
add esi, ebx
cmp dword [ebp - 0x24], 0
je 0x4bc8c7
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
cmp byte [eax + 1], 0x3a
jne 0x4bc830
push ecx
push 0
lea ecx, [ebp - 0x34]
call fcn.004672b0
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
push esi
mov dword [ebp - 0x54], 0x4442f8
call fcn.004ba720
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.00492750
test eax, eax
jne 0x4bc899
mov eax, dword [ebp - 0x24]
mov cl, byte [eax + esi]
lea edx, [eax + esi]
test cl, cl
je 0x4bc892
cmp cl, 0x5c
je 0x4bc88d
cmp eax, 1
jne 0x4bc899
cmp byte [ebp - 0x7c], 0
jne 0x4bc899
inc esi
jmp 0x4bc899
lea esi, [edx + 1]
jmp 0x4bc899
mov byte [edi], 0x2e
inc edi
add esi, dword [ebp - 0x24]
cmp dword [ebp - 0x3c], 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], 0x4442f8
jb 0x4bc8b5
push dword [ebp - 0x50]
call fcn.00549eaf
add esp, 4
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
mov eax, dword [ebp + 0xc]
mov ecx, closesocket
test eax, eax
mov ebx, esi
cmove eax, ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebx + 1]
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4bc8e0
mov edx, dword [ebp - 0x80]
sub ebx, ecx
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub eax, edx
mov dword [ebp - 0x78], eax
cmp ebx, ecx
jle 0x4bc953
xor ah, ah
lea esp, [esp]
cmp ebx, ecx
jle 0x4bc953
mov ecx, esi
mov dword [ebp - 0x1c], ecx
lea esp, [esp]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4bc951
cmp al, 0x5c
jne 0x4bc910
test ah, ah
jne 0x4bc948
mov eax, dword [ebp - 0x84]
sub eax, edi
add eax, edx
push 0x445ad0
push eax
push edi
call fcn.0054db28
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x80]
add edi, 4
add dword [ebp - 0x78], 4
mov ah, 1
sub ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 0xc]
jmp 0x4bc900
mov esi, ecx
mov eax, dword [ebp - 0x84]
sub eax, edi
add eax, edx
push esi
push eax
push edi
call fcn.0054db28
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bc970
mov eax, dword [ebp - 0x7c]
sub ecx, edx
add edi, ecx
test al, al
je 0x4bc995
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1b], 0x3a
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [ebp - 0x18], 0
je 0x4bc99f
mov byte [edi], 0x22
inc edi
mov byte [edi], 0
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x38], 0x4442f8
jb 0x4bc9ba
push dword [ebp - 0x34]
call fcn.00549eaf
add esp, 4
mov edi, dword [ebp - 0x80]
mov edx, 0x444144
test edi, edi
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
cmovne edx, edi
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp byte [edx], 0
mov dword [ebp - 4], 0xffffffff
jne 0x4bc9fb
xor ecx, ecx
jmp 0x4bca09
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bca00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.00465aa0
mov dword [ebp - 0x70], 0x4442f8
push edi
mov dword [ebp - 4], 5
call fcn.0054a8a8
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x6c]
add esp, 4
mov dword [esi + 0x18], 0xf
lea ecx, [esi + 4]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
push 0xffffffffffffffff
push 0
push eax
call fcn.004658c0
cmp dword [ebp - 0x58], 0x10
mov dword [esi], 0x4442f8
mov dword [ebp - 0x70], 0x4442f8
jb 0x4bc61f
push dword [ebp - 0x6c]
call fcn.00549eaf
add esp, 4
jmp 0x4bc61f