Function at 0x44e9d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x53d9f8]
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.004d8da0
add esp, 8
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.0044ec80
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x44ea64
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44ea5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44ea5a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
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.004bedfd
mov esi, eax
add esp, 4
mov dword [ebp - 0x94], esi
xor eax, eax
test esi, esi
je 0x44eaf9
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 7
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.004033b0
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.004b49c0
mov dword [edi], eax
mov dword [ebp - 4], 8
test bl, 4
je 0x44eb58
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x44eb44
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44eb3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ebe9
push edx
push ecx
call fcn.004bee2d
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 0x44ebb1
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x44eb9d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44eb93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ebe9
push edx
push ecx
call fcn.004bee2d
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 0x44ebf9
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x44ebf9
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44ebef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44ebef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
cmp dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xa
je 0x44ec12
push dword [ebp - 0x88]
call dword [ebp - 0x7c]
cmp dword [ebp - 0x8c], 0
je 0x44ec27
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x44ec35
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x44ec48
push eax
call fcn.004bee44
add esp, 4
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x44ec5b
push ecx
call fcn.004bee44
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.004bee49
mov esp, ebp
pop ebp
ret