Function at 0x46ee90
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4e7085
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x417270]
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], 0x41c480
mov eax, dword [esi + 0x18]
add eax, 3
mov dword [esp + 0xb4], 1
lea edi, [ebx + 0x10]
cmp eax, 0xf
je 0x46ef34
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.0042abf0
test al, al
je 0x46ef34
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x44], edi
jae 0x46ef31
lea eax, [esp + 0x30]
mov byte [eax], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x46ef45
lea ecx, [esp + 0x30]
add eax, 3
push eax
push ebx
push ecx
call fcn.004caf20
lea edi, [esi + 4]
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x46ef61
mov ecx, dword [edi + 4]
jmp 0x46ef64
lea ecx, [edi + 4]
cmp dword [esp + 0x44], 0x10
mov edx, dword [esp + 0x30]
jae 0x46ef73
lea edx, [esp + 0x30]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46ef73
cmp dword [esi + 0x18], ebx
jne 0x46efe8
test byte [esp + 0xc4], 1
mov ecx, ebp
je 0x46efbb
push 0x41c670
call fcn.0042e060
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x28], 0x41c480
jb 0x46efb4
mov eax, dword [esp + 0x30]
push eax
call fcn.004cada5
add esp, 4
mov eax, ebp
jmp 0x46f3bc
push 0x4186a1
call fcn.0042e060
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x28], 0x41c480
jb 0x46efb4
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004cada5
add esp, 4
mov eax, ebp
jmp 0x46f3bc
test byte [esp + 0xc4], 2
jne 0x46f010
push 1
push ebx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov byte [esp + 0x24], 0x20
call fcn.0046d6d0
mov byte [esp + 0x18], 1
cmp eax, 0xffffffff
jne 0x46f015
mov byte [esp + 0x18], 0
cmp dword [esp + 0x44], 0x10
mov ebp, dword [esp + 0x30]
jae 0x46f024
lea ebp, [esp + 0x30]
mov esi, 0x10
cmp dword [edi + 0x18], esi
jb 0x46f033
mov edi, dword [edi + 4]
jmp 0x46f036
add edi, 4
cmp byte [esp + 0x18], 0
je 0x46f042
mov byte [ebp], 0x22
inc ebp
mov al, byte [edi]
mov cl, byte [edi + 1]
cmp al, cl
jne 0x46f04f
cmp al, 0x5c
je 0x46f057
cmp al, 0x2f
je 0x46f057
xor bl, bl
jmp 0x46f059
mov bl, 1
mov byte [esp + 0x17], 0
cmp cl, 0x3a
jne 0x46f073
movsx eax, al
push eax
call fcn.004cd9d5
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], 0x41c63c
mov byte [esp + 0xb4], 2
mov byte [esp + 0x16], 0
test bl, bl
jne 0x46f0ef
test byte [esp + 0xc4], 1
je 0x46f0ef
lea ecx, [esp + 0x48]
call fcn.0046ea40
cmp dword [esp + 0x60], 1
jae 0x46f0c0
call fcn.004caf0d
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x46f0ce
lea eax, [esp + 0x50]
cmp byte [eax + 1], 0x3a
jne 0x46f0ef
push 0
lea ecx, [esp + 0x4c]
call fcn.00436820
movsx ecx, byte [eax]
push ecx
call fcn.004cd9d5
add esp, 4
mov byte [esp + 0x16], al
mov al, byte [esp + 0x17]
test al, al
je 0x46f120
test byte [esp + 0xc4], 1
je 0x46f107
cmp al, byte [esp + 0x16]
je 0x46f120
movsx edx, byte [edi]
push edx
call fcn.004cd9d5
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 0x46f158
cmp al, byte [esp + 0x16]
je 0x46f158
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.0046ea40
jmp 0x46f15d
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 0x46f23e
cmp eax, 1
jae 0x46f181
call fcn.004caf0d
mov eax, dword [esp + 0x50]
mov edi, 0x10
cmp dword [esp + 0x64], edi
jae 0x46f194
lea eax, [esp + 0x50]
cmp byte [eax + 1], 0x3a
jne 0x46f1a7
push 2
push 0
lea ecx, [esp + 0x54]
call fcn.0042a420
mov edx, dword [esp + 0x60]
push edx
push esi
lea ecx, [esp + 0x70]
call fcn.004370a0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb8], 3
call fcn.00457a30
test eax, eax
jne 0x46f1fd
mov ecx, dword [esp + 0x60]
mov al, byte [ecx + esi]
test al, al
je 0x46f1f4
cmp al, 0x5c
je 0x46f1ee
cmp ecx, 1
jne 0x46f1fd
cmp byte [esp + 0x16], 0
jne 0x46f1fd
inc esi
jmp 0x46f1fd
lea esi, [ecx + esi + 1]
jmp 0x46f1fd
mov byte [ebp], 0x2e
inc ebp
add esi, dword [esp + 0x60]
mov byte [esp + 0xb4], 2
mov dword [esp + 0x68], 0x41c480
cmp dword [esp + 0x84], edi
jb 0x46f223
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004cada5
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 0x46f24e
mov edi, accept
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f253
sub eax, edx
mov edx, eax
cmp edx, edi
jle 0x46f297
xor bl, bl
mov ecx, esi
mov al, byte [esi + 1]
inc esi
test al, al
je 0x46f295
cmp al, 0x5c
jne 0x46f266
test bl, bl
jne 0x46f28b
mov eax, dword [0x41c67c]
mov dword [ebp], eax
mov al, byte [0x41c680]
mov byte [ebp + 4], al
add ebp, 4
mov bl, 1
sub ecx, esi
add edx, ecx
cmp edx, edi
jg 0x46f264
jmp 0x46f297
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 0x46f2a0
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f2b0
sub eax, edx
add ebp, eax
mov al, byte [esp + 0x16]
test al, al
je 0x46f2db
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 0x46f2e7
mov byte [ebp], 0x22
inc ebp
mov byte [ebp], 0
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x46f2fa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x8c]
call fcn.0042e060
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.0042b580
mov ebp, 0x41c480
mov edi, 0x10
mov dword [esi], ebp
mov dword [esp + 0x88], ebp
cmp dword [esp + 0xa4], edi
jb 0x46f361
mov eax, dword [esp + 0x90]
push eax
call fcn.004cada5
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 0x46f392
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004cada5
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 0x46f3ba
mov edx, dword [esp + 0x30]
push edx
call fcn.004cada5
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.004cb3aa
add esp, 0xa4
ret 0xc