Function at 0x477720
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66c400
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x58]
push 1
mov dword [ebp - 0x74], ebx
push eax
mov dword [edi], ebx
call fcn.004b06b0
add esp, 8
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.004779e0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4777b2
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4777a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4779c7
push edx
push ecx
call fcn.004cb4db
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
push 0x68
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004cb4ab
mov esi, eax
add esp, 4
mov dword [ebp - 0x94], esi
xor eax, eax
test esi, esi
je 0x477845
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push str.kupdate
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00472510
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
mov ebx, 7
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], ebx
push eax
mov ecx, esi
call fcn.004c5320
mov dword [edi], eax
mov dword [ebp - 4], 8
test bl, 4
je 0x4778a4
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x477890
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477886
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4779cc
push edx
push ecx
call fcn.004cb4db
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 7
test bl, 2
je 0x477901
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x4778ed
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4778e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4779cc
push edx
push ecx
call fcn.004cb4db
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 2
test bl, 1
je 0x477947
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x477947
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47793d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4779cc
push edx
push ecx
call fcn.004cb4db
add esp, 8
cmp dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xa
je 0x477960
push dword [ebp - 0x88]
call dword [ebp - 0x7c]
cmp dword [ebp - 0x8c], 0
je 0x477975
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x477983
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x477996
push eax
call fcn.004cb4e9
add esp, 4
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x4779a9
push ecx
call fcn.004cb4e9
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
call fcn.004e6589
int3