Function at 0x795930
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], 0x798d00
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 0x7959ae
mov dword [ebp - 0x20], eax
add eax, 3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x30], eax
push eax
call fcn.0091d83b
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x24]
call fcn.009350b0
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x18], 0x10
jb 0x795a15
mov ebx, dword [ebx + 4]
jmp 0x795a18
mov eax, esi
test al, 1
jne 0x795a58
call fcn.00799730
mov esi, eax
mov edi, dword [eax + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x795e6e
mov esi, dword [esi + 4]
lea eax, [ebx + 4]
cmp edi, 0xf
jbe 0x795e7d
mov dword [ebp - 0x24], eax
mov eax, edi
or eax, 0xf
test edi, edi
mov ebx, 0x7fffffff
cmovns ebx, eax
cmp ebx, 0xfff
jb 0x795eaf
lea eax, [ebx + 0x24]
push eax
call fcn.0091d7fd
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x795ebb
add ebx, 4
mov esi, dword [ebp - 0x20]
push esi
push ebx
push dword [ebp - 0x24]
call fcn.00935430
add esp, 0xc
mov eax, dword [ebp + 0x10]
test al, 2
jne 0x795a4c
push esi
push 0x20
push ebx
call fcn.00937180
add esp, 0xc
test eax, eax
sete cl
sub eax, ebx
cmp eax, 0xffffffff
sete al
or al, cl
je 0x795a82
mov dword [ebp - 0x38], 0
mov esi, dword [ebp - 0x24]
jmp 0x795a90
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], 0x954b60
jmp 0x795edf
mov eax, dword [ebp - 0x24]
lea esi, [eax + 1]
mov byte [eax], 0x22
mov al, 1
mov dword [ebp - 0x38], eax
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 0x795ac3
push eax
call fcn.009077c9
add esp, 4
mov edx, eax
jmp 0x795ac5
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x58], 0x956450
test cl, 1
sete al
or bl, al
mov dword [ebp - 0x34], edx
je 0x795b01
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x2c]
test dl, dl
jne 0x795b5b
jmp 0x795b81
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x58]
call fcn.00795fd0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
lea edx, [eax + 1]
cmp ecx, 0x10
lea esi, [ebp - 0x53]
cmovae esi, edx
cmp byte [esi], 0x3a
mov ebx, dword [ebp - 0x2c]
jne 0x795b47
cmp ecx, 0x10
lea ecx, [ebp - 0x54]
cmovb eax, ecx
movsx eax, byte [eax]
push eax
call fcn.009077c9
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x795b4e
mov dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
test dl, dl
je 0x795b81
test cl, 1
je 0x795b65
cmp dl, byte [ebp - 0x28]
je 0x795b81
movsx eax, byte [ebx]
push eax
mov edi, edx
call fcn.009077c9
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 0x795bbe
cmp dl, byte [ebp - 0x28]
je 0x795bbe
mov byte [ebp - 0x78], dl
mov word [ebp - 0x77], 0x3a
mov dword [ebp - 0x10], 3
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x58]
call fcn.00795fd0
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 - 0x44]
test eax, eax
je 0x795cae
mov ecx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x40]
lea edx, [ecx + 1]
cmp esi, 0x10
lea edi, [ebp - 0x53]
cmovae edi, edx
cmp byte [edi], 0x3a
jne 0x795c1b
cmp eax, 2
mov edx, 2
cmovb edx, eax
cmp esi, 0x10
lea esi, [ebp - 0x54]
cmovae esi, ecx
sub eax, edx
mov dword [ebp - 0x44], eax
inc eax
add edx, esi
push eax
push edx
push esi
call fcn.00935430
add esp, 0xc
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x78], 0x954b60
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x78]
push eax
mov dword [ebp - 0x28], ebx
push ebx
call fcn.00799fb0
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x78]
push eax
call fcn.007256b0
test eax, eax
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
je 0x795e56
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x795cae
mov ecx, dword [ebp - 0x74]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x795ca4
mov dword [ebp - 0x28], ebx
mov ebx, esi
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x795f00
add eax, 0x24
mov edx, eax
mov ecx, esi
mov esi, ebx
mov ebx, dword [ebp - 0x28]
push edx
push ecx
call fcn.0091d82d
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
mov edi, 0x7fffffff
cmovne edi, eax
push ebx
call fcn.00903f50
add esp, 4
mov dword [ebp - 0x34], edi
cmp eax, edi
jle 0x795d46
mov ecx, eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x7c], eax
xor eax, eax
cmp ecx, dword [ebp - 0x34]
jle 0x795d52
mov dword [ebp - 0x5c], ecx
xor edi, edi
nop word cs:[eax + eax]
movzx ecx, byte [ebx + edi + 1]
test ecx, ecx
je 0x795d4b
inc edi
cmp ecx, 0x5c
jne 0x795cf0
mov dword [ebp - 0x80], edi
test al, 1
jne 0x795d33
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x7c]
sub eax, esi
mov dword [ebp - 0x10], 3
push 0x9db593
push eax
mov dword [ebp - 0x20], esi
push esi
call fcn.009077f9
add esp, 0xc
mov esi, dword [ebp - 0x20]
add esi, 4
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x80]
add ebx, eax
sub ecx, eax
mov al, 1
cmp ecx, dword [ebp - 0x34]
jg 0x795cdf
jmp 0x795d52
mov edx, dword [ebp - 0x30]
jmp 0x795d52
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.009077f9
add esp, 0xc
mov esi, dword [ebp - 0x20]
push esi
call fcn.00903f50
add esp, 4
mov ecx, dword [ebp - 0x2c]
test cl, cl
je 0x795d9b
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x78], cl
mov word [ebp - 0x77], 0x3a
lea eax, [ebp - 0x78]
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 - 0x38], 0
je 0x795da7
mov byte [esi], 0x22
inc esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x24]
mov byte [esi], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x795de8
mov ecx, dword [ebp - 0x54]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x795dde
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x795ef4
add eax, 0x24
mov edx, eax
mov ecx, esi
push edx
push ecx
call fcn.0091d82d
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.00903f50
add esp, 4
cmp eax, 0xf
jbe 0x795e2d
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0xc
movzx ecx, byte [ebp - 0x58]
mov byte [esp + 4], cl
mov dword [esp + 8], edi
mov dword [esp], eax
mov ecx, esi
call fcn.006704d0
jmp 0x795e42
mov dword [ebx + 0x14], eax
push eax
push edi
push esi
mov esi, eax
call fcn.00935430
add esp, 0xc
mov byte [ebx + esi + 4], 0
mov dword [ebx], 0x954b60
push edi
call fcn.0091d844
add esp, 4
jmp 0x795edf
mov eax, dword [ebp - 0x44]
movzx ecx, byte [ebx + eax]
test ecx, ecx
je 0x795e8a
cmp ecx, 0x5c
jne 0x795e96
add ebx, eax
inc ebx
jmp 0x795c6c
add esi, 4
lea eax, [ebx + 4]
cmp edi, 0xf
ja 0x7959db
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
mov ebx, 0xf
jmp 0x795ece
mov byte [esi], 0x2e
inc esi
add ebx, dword [ebp - 0x44]
jmp 0x795c6c
cmp eax, 1
sete al
cmp byte [ebp - 0x2c], 0
sete cl
and cl, al
movzx eax, cl
add ebx, eax
jmp 0x795c6c
lea eax, [ebx + 1]
push eax
call fcn.0091d7fd
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea ecx, [edi + 1]
push ecx
push esi
push eax
call fcn.00935430
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ebx
mov ebx, eax
mov dword [eax], 0x954b60
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.00900ce1
mov dword [ebp - 0x10], 0
call fcn.00900ce1
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.009350a0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.009350a0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea ecx, [ebp - 0x58]
call fcn.006575f0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
add esp, 0xc
pop ebp
ret