Function at 0x46e270
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0xac8]
xor ebx, ebx
mov byte [edi + 0x278], 1
mov word [edi + 0xae0], 0
cmp eax, ebx
je 0x46e4c8
cmp word [eax], bx
je 0x46e4c8
call section..text
cmp dword [0x516e28], ebx
jne 0x46e2bd
call fcn.0049ef30
mov dword [0x516e28], eax
cmp eax, ebx
je 0x46e309
mov ecx, dword [0x516e2c]
cmp dword [ecx + 8], 0x14
jae 0x46e2db
call fcn.0049ef30
mov ecx, dword [0x516e2c]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x46e309
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffec
lea edx, [eax + 0x14]
mov dword [0x516e30], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x46e309
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4e1a4c
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x46e30b
xor eax, eax
mov dword [edi + 0x638], eax
cmp eax, ebx
je 0x46e4c8
mov eax, 0x4efedc
cmp byte [0x516018], bl
jne 0x46e32c
mov eax, dword [edi + 0xac8]
push eax
mov ecx, edi
call fcn.0046e7e0
cmp eax, 1
jne 0x46e4c8
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.00475270
test eax, eax
je 0x46e4c8
mov esi, 0x51939c
call fcn.00415eb0
push 1
mov esi, 0x518a84
call fcn.00414fa0
cmp dword [0x518a90], ebx
je 0x46e37d
call fcn.00480800
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [edi]
push edi
call fcn.004233b0
test eax, eax
je 0x46e4c8
mov eax, dword [edi]
mov esi, edi
call fcn.00423480
cmp dword [edi + 8], ebx
je 0x46e3b0
mov ecx, dword [edi]
mov eax, dword [edi + 0xc]
mov dword [eax + 0x18], ecx
mov edx, dword [edi]
mov eax, dword [edi + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [edi + 8]
mov dword [edi], ecx
cmp dword [edi + 0x1c], ebx
jle 0x46e3e9
mov edx, dword [edi + 0x18]
mov ebp, dword [edx + ebx*4]
cmp byte [ebp + 0x3d], 0
jne 0x46e3e1
test byte [ebp + 0x3c], 4
jne 0x46e3e1
mov eax, dword [ebp + 0x1c]
push ebp
lea esi, [ebp + 0x28]
push edi
call fcn.0042fbc0
mov eax, dword [ebp + 0x20]
push ebp
lea esi, [ebp + 0x30]
push edi
call fcn.0042fbc0
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x46e3b5
xor ebx, ebx
cmp dword [edi + 0x264], ebx
je 0x46e412
call fcn.00420aa0
test eax, eax
je 0x46e4c8
mov eax, dword [edi + 0x264]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x264], ebx
cmp dword [0x51602c], ebx
je 0x46e420
push edi
call fcn.0042fc70
mov eax, dword [0x5166e8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [edi + 0x274]
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.00475270
test eax, eax
je 0x46e4c8
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.00475270
test eax, eax
je 0x46e4c8
mov ecx, dword [edi + 0x638]
mov edx, dword [edi + 4]
push ebx
push ebx
mov dword [ecx + 8], edx
mov eax, dword [edi]
push ebx
push eax
mov ecx, edi
call fcn.004234f0
test eax, eax
je 0x46e4c8
mov eax, dword [edi]
push edi
call fcn.00423910
test eax, eax
je 0x46e4c8
mov ecx, dword [0x519498]
push 3
push ebx
push ecx
mov ecx, edi
call fcn.00422930
mov dword [0x5166e0], eax
cmp eax, ebx
je 0x46e4c8
push 1
push ebx
push 0xffffffffffffffff
push 0x4e1a5c
push eax
call fcn.004aa2a0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00414cf0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret