Function at 0x786250
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x7895d0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x7862ce
mov dword [ebp - 0x20], eax
add eax, 3
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x30], eax
push eax
call fcn.008ea1c5
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x24]
call fcn.00901a10
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x18], 0x10
jb 0x7862f4
mov ebx, dword [ebx + 4]
jmp 0x7862f7
mov eax, esi
test al, 1
jne 0x7863fa
call fcn.00789f90
mov esi, eax
mov edi, dword [eax + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x78675d
mov esi, dword [esi + 4]
jmp 0x786760
add ebx, 4
mov esi, dword [ebp - 0x20]
push esi
push ebx
push dword [ebp - 0x24]
call fcn.00901d90
add esp, 0xc
mov eax, dword [ebp + 0x10]
test al, 2
jne 0x786337
push esi
push 0x20
push ebx
call fcn.00903ae0
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x786339
sub eax, ebx
mov esi, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x78633c
mov eax, dword [ebp - 0x24]
lea esi, [eax + 1]
mov byte [eax], 0x22
mov cl, 1
jmp 0x78633c
xor ecx, ecx
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x80], ecx
movsx eax, byte [ebx]
cmp eax, 0x2f
sete cl
mov dword [ebp - 0x2c], ebx
movzx edx, byte [ebx + 1]
mov ch, al
xor ch, 0x5c
mov dh, dl
xor dh, 0x5c
or dh, ch
sete bl
or bl, cl
cmp dl, 0x3a
jne 0x786372
push eax
call fcn.008d4179
add esp, 4
mov edx, eax
jmp 0x786374
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x54], 0x922910
test cl, 1
sete al
or bl, al
mov dword [ebp - 0x34], edx
je 0x7863b4
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x2c]
test dl, dl
jne 0x786438
jmp 0x78645e
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x54]
call fcn.007868f0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x3c]
lea edx, [eax + 1]
cmp ecx, 0x10
lea esi, [ebp - 0x4f]
cmovae esi, edx
cmp byte [esi], 0x3a
mov ebx, dword [ebp - 0x2c]
jne 0x786424
cmp ecx, 0x10
lea ecx, [ebp - 0x50]
cmovb eax, ecx
movsx eax, byte [eax]
push eax
call fcn.008d4179
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x78642b
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], 6
mov dword [ebx + 4], 0x6e6f6e3c
mov word [ebx + 8], 0x3e65
mov byte [ebx + 0xa], 0
mov dword [ebx], 0x920fc0
jmp 0x7867ff
mov dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
test dl, dl
je 0x78645e
test cl, 1
je 0x786442
cmp dl, byte [ebp - 0x28]
je 0x78645e
movsx eax, byte [ebx]
push eax
mov edi, edx
call fcn.008d4179
mov edx, edi
mov ecx, dword [ebp + 0x10]
add esp, 4
mov byte [esi], al
mov byte [esi + 1], 0x3a
add esi, 2
xor eax, eax
test cl, 1
mov dword [ebp - 0x20], esi
je 0x78649b
cmp dl, byte [ebp - 0x28]
je 0x78649b
mov byte [ebp - 0x74], dl
mov word [ebp - 0x73], 0x3a
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x54]
call fcn.007868f0
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
xor eax, eax
test dl, dl
setne al
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x78658b
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x3c]
lea edx, [ecx + 1]
cmp esi, 0x10
lea edi, [ebp - 0x4f]
cmovae edi, edx
cmp byte [edi], 0x3a
jne 0x7864f8
cmp eax, 2
mov edx, 2
cmovb edx, eax
cmp esi, 0x10
lea esi, [ebp - 0x50]
cmovae esi, ecx
sub eax, edx
mov dword [ebp - 0x40], eax
inc eax
add edx, esi
push eax
push edx
push esi
call fcn.00901d90
add esp, 0xc
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x74], 0x920fc0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x74]
push eax
mov dword [ebp - 0x28], ebx
push ebx
call fcn.0078a850
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x74]
push eax
call fcn.00718d60
test eax, eax
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
je 0x786745
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x78658b
mov ecx, dword [ebp - 0x70]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x786581
mov dword [ebp - 0x28], ebx
mov ebx, esi
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x786820
add eax, 0x24
mov edx, eax
mov ecx, esi
mov esi, ebx
mov ebx, dword [ebp - 0x28]
push edx
push ecx
call fcn.008ea1ad
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
mov edi, 0x7fffffff
cmovne edi, eax
push ebx
call fcn.008d08c0
add esp, 4
mov dword [ebp - 0x34], edi
cmp eax, edi
jle 0x786635
mov ecx, eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
lea edi, [edx + eax]
mov dword [ebp - 0x20], 0
cmp ecx, dword [ebp - 0x34]
jle 0x786641
mov dword [ebp - 0x58], ecx
xor eax, eax
nop dword [eax]
movzx ecx, byte [ebx + eax + 1]
test ecx, ecx
je 0x78663a
inc eax
cmp ecx, 0x5c
jne 0x7865d0
mov dword [ebp - 0x7c], eax
test byte [ebp - 0x20], 1
jne 0x786624
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x78], edi
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], 3
push 0x9a867a
push eax
mov dword [ebp - 0x20], esi
push esi
call fcn.008d41a9
add esp, 0xc
mov esi, dword [ebp - 0x20]
add esi, 4
mov al, 1
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x78]
jmp 0x786627
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x7c]
add ebx, eax
sub ecx, eax
cmp ecx, dword [ebp - 0x34]
jg 0x7865c7
jmp 0x786641
mov edx, dword [ebp - 0x30]
jmp 0x786641
mov dword [ebp - 0x10], 3
add edx, dword [ebp - 0x24]
sub edx, esi
mov dword [ebp - 0x10], 3
push ebx
push edx
mov dword [ebp - 0x20], esi
push esi
call fcn.008d41a9
add esp, 0xc
mov esi, dword [ebp - 0x20]
push esi
call fcn.008d08c0
add esp, 4
mov ecx, dword [ebp - 0x2c]
test cl, cl
je 0x78668a
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x74], cl
mov word [ebp - 0x73], 0x3a
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
add esi, eax
cmp byte [ebp - 0x80], 0
je 0x786696
mov byte [esi], 0x22
inc esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x24]
mov byte [esi], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x7866d7
mov ecx, dword [ebp - 0x50]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x7866cd
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x786814
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.008ea1ad
add esp, 8
lea esi, [ebx + 4]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0xf
mov byte [ebx + 4], 0
push edi
call fcn.008d08c0
add esp, 4
cmp eax, 0xf
jbe 0x78671c
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0xc
movzx ecx, byte [ebp - 0x54]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, esi
call fcn.0066cb40
jmp 0x786731
mov dword [ebx + 0x14], eax
push eax
push edi
push esi
mov esi, eax
call fcn.00901d90
add esp, 0xc
mov byte [ebx + esi + 4], 0
mov dword [ebx], 0x920fc0
push edi
call fcn.008ea1ce
add esp, 4
jmp 0x7867ff
mov eax, dword [ebp - 0x40]
movzx ecx, byte [ebx + eax]
test ecx, ecx
je 0x7867aa
cmp ecx, 0x5c
jne 0x7867b6
add ebx, eax
inc ebx
jmp 0x786549
add esi, 4
lea eax, [ebx + 4]
cmp edi, 0xf
ja 0x786775
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
mov ebx, 0xf
jmp 0x7867ee
mov dword [ebp - 0x24], eax
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
mov ebx, 0x7fffffff
cmovb ebx, eax
cmp eax, 0xfff
jb 0x7867cf
lea eax, [ebx + 0x24]
push eax
call fcn.008ea17d
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x7867db
mov byte [esi], 0x2e
inc esi
add ebx, dword [ebp - 0x40]
jmp 0x786549
cmp eax, 1
sete al
cmp byte [ebp - 0x2c], 0
sete cl
and cl, al
movzx eax, cl
add ebx, eax
jmp 0x786549
lea eax, [ebx + 1]
push eax
call fcn.008ea17d
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea ecx, [edi + 1]
push ecx
push esi
push eax
call fcn.00901d90
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ebx
mov ebx, eax
mov dword [eax], 0x920fc0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [ebp - 0x10], 1
call fcn.008cd651
mov dword [ebp - 0x10], 0
call fcn.008cd651
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.00901a00
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.00901a00
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00657390
add esp, 0xc
pop ebp
ret