Function at 0x46c7c0
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0xac4]
xor ebx, ebx
mov byte [edi + 0x274], 1
mov word [edi + 0xadc], 0
cmp eax, ebx
je 0x46ca23
cmp word [eax], bx
je 0x46ca23
push ebx
call section..text
add esp, 4
cmp dword [0x51c01c], ebx
jne 0x46c811
call fcn.004a3e40
mov dword [0x51c01c], eax
cmp eax, ebx
je 0x46c85d
mov ecx, dword [0x51c020]
cmp dword [ecx + 8], 0x14
jae 0x46c82f
call fcn.004a3e40
mov ecx, dword [0x51c020]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x46c85d
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffec
lea edx, [eax + 0x14]
mov dword [0x51c024], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x46c85d
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4f5ac4
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x46c85f
xor eax, eax
mov dword [edi + 0x634], eax
cmp eax, ebx
je 0x46ca23
mov eax, 0x509da8
cmp byte [0x51aff3], bl
jne 0x46c880
mov eax, dword [edi + 0xac4]
push 1
push ebx
push eax
push edi
call fcn.0046ca30
cmp eax, 1
jne 0x46ca23
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.00475b80
test eax, eax
je 0x46ca23
mov esi, 0x51e5cc
call fcn.00414f70
push 1
mov esi, 0x51dcb4
call fcn.00413fe0
cmp dword [0x51dcc0], ebx
je 0x46c8d3
call fcn.00484ce0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [edi]
push edi
call fcn.00422420
test eax, eax
je 0x46ca23
mov eax, dword [edi]
mov esi, edi
call fcn.004224f0
cmp dword [edi + 8], ebx
je 0x46c906
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 0x46c944
jmp 0x46c910
mov edx, dword [edi + 0x18]
mov ebp, dword [edx + ebx*4]
cmp byte [ebp + 0x3d], 0
jne 0x46c93c
test byte [ebp + 0x3c], 4
jne 0x46c93c
mov eax, dword [ebp + 0x1c]
push ebp
lea esi, [ebp + 0x28]
push edi
call fcn.0042e6e0
mov eax, dword [ebp + 0x20]
push ebp
lea esi, [ebp + 0x30]
push edi
call fcn.0042e6e0
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x46c910
xor ebx, ebx
cmp dword [edi + 0x260], ebx
je 0x46c96d
call fcn.0041fb40
test eax, eax
je 0x46ca23
mov eax, dword [edi + 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x260], ebx
cmp dword [0x51b01c], ebx
je 0x46c97b
push edi
call fcn.0042e790
mov eax, dword [0x51b6d4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [edi + 0x270]
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.00475b80
test eax, eax
je 0x46ca23
push ebx
push ebx
push ebx
push 0x68
push edi
call fcn.00475b80
test eax, eax
je 0x46ca23
mov ecx, dword [edi + 0x634]
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.00422560
test eax, eax
je 0x46ca23
mov eax, dword [edi]
push edi
call fcn.004227e0
test eax, eax
je 0x46ca23
mov ecx, dword [0x51e6c8]
push 3
push ebx
push ecx
mov ecx, edi
call fcn.004219a0
mov dword [0x51b6d0], eax
cmp eax, ebx
je 0x46ca23
push 1
push ebx
push 0xffffffffffffffff
push 0x4e6a28
push eax
call fcn.004aefb0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00413d30
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