Function at 0x419f90
Capabilities:
Set current directory

Disassembly:
mov eax, dword [edi + 0x5e0]
sub esp, 0x18
push ebx
push ebp
push esi
xor esi, esi
mov byte [edi + 0x150], 1
mov word [edi + 0x5f8], 0
cmp eax, esi
je 0x41a2d3
cmp byte [eax], 0
je 0x41a2d3
cmp dword [0x4bd738], esi
jne 0x419fd5
call fcn.0047b210
mov dword [0x4bd738], eax
cmp eax, esi
je 0x41a01a
mov ecx, dword [0x4bd73c]
cmp dword [ecx + 8], 0x10
jae 0x419ff3
call fcn.0047b210
mov ecx, dword [0x4bd73c]
mov dword [ecx + 0xc], eax
cmp eax, esi
je 0x41a01a
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xfffffff0
lea edx, [eax + 0x10]
mov dword [0x4bd740], eax
mov dword [ecx + 4], edx
cmp eax, esi
je 0x41a01a
mov dword [eax], 0x4a6869
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
jmp 0x41a01c
xor eax, eax
mov dword [edi + 0x38c], eax
cmp eax, esi
je 0x41a2d3
cmp byte [0x4bb893], 0
mov eax, 0x4ab36c
jne 0x41a03e
mov eax, dword [edi + 0x5e0]
push eax
push edi
call fcn.0041a420
cmp eax, 1
jne 0x41a2d3
push esi
push esi
push esi
push 0x67
push edi
call fcn.004203e0
test eax, eax
je 0x41a2d3
xor ebx, ebx
mov dword [esp + 0x10], esi
xor ebp, ebp
lea esp, [esp]
cmp ebp, dword [0x4bb8f4]
jge 0x41a0ac
jmp 0x41a080
mov eax, dword [0x4bb8f0]
mov esi, dword [eax + ebp*4]
push 0
push 0
push esi
mov ecx, edi
call fcn.00426e10
test eax, eax
je 0x41a2d3
inc ebp
mov byte [esi], 0x11
cmp ebp, dword [0x4bb8f4]
jl 0x41a080
mov esi, dword [esp + 0x10]
cmp esi, dword [edi + 0x358]
je 0x41a0e3
test esi, esi
je 0x41a0bd
mov eax, dword [esi + 0x14]
jmp 0x41a0c3
mov eax, dword [edi + 0x354]
push 0
push 0
push eax
mov ecx, edi
call fcn.00426e10
test eax, eax
je 0x41a2d3
mov ecx, dword [edi + 0x358]
mov dword [esp + 0x10], ecx
mov esi, ecx
cmp ebx, dword [edi + 0x350]
je 0x41a119
test ebx, ebx
je 0x41a0f4
mov eax, dword [ebx + 0x14]
jmp 0x41a0fa
mov eax, dword [edi + 0x34c]
push 0
push 0
push eax
mov ecx, edi
call fcn.00426e10
test eax, eax
je 0x41a2d3
mov ebx, dword [edi + 0x350]
jmp 0x41a070
cmp dword [edi + 0x354], 0
je 0x41a14c
mov eax, dword [edi + 0x34c]
mov edx, dword [edi + 0x358]
mov dword [edx + 0x14], eax
mov ecx, dword [edi + 0x34c]
mov edx, dword [edi + 0x358]
mov dword [ecx + 0x10], edx
mov eax, dword [edi + 0x354]
mov dword [edi + 0x34c], eax
xor ebx, ebx
cmp dword [edi + 0x368], ebx
jle 0x41a1ac
jmp 0x41a160
mov ecx, dword [edi + 0x364]
mov ebp, dword [ecx + ebx*4]
cmp byte [ebp + 0x51], 0
jne 0x41a1a3
mov eax, dword [ebp + 0x20]
push ebp
lea esi, [ebp + 0x34]
push edi
call fcn.00433780
mov eax, dword [ebp + 0x28]
push ebp
lea esi, [ebp + 0x40]
push edi
call fcn.00433780
mov eax, dword [ebp + 0x24]
push ebp
lea esi, [ebp + 0x3c]
push edi
call fcn.00433780
mov eax, dword [ebp + 0x2c]
push ebp
lea esi, [ebp + 0x48]
push edi
call fcn.00433780
inc ebx
cmp ebx, dword [edi + 0x368]
jl 0x41a160
mov eax, dword [edi + 0x13c]
test eax, eax
je 0x41a22a
cmp dword [eax + 0x10], 0
je 0x41a212
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
mov ebp, dword [eax + 8]
test esi, esi
je 0x41a212
mov eax, str.__Class
lea ebx, [esp + 0x10]
call fcn.00417620
test al, al
je 0x41a1f3
mov eax, dword [esp + 0x14]
mov edx, eax
mov dword [edi + 0x148], eax
mov eax, dword [esp + 0x10]
sar edx, 0x1f
mov dword [edi + 0x14c], eax
push ebp
push str.Unknown_class.
mov ecx, edi
mov dword [edi + 0x388], 0
call fcn.004330b0
test eax, eax
je 0x41a2d3
mov eax, dword [edi + 0x13c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x13c], 0
mov eax, dword [0x4bc07c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc dword [edi + 0x14c]
push 0
push 0
push 0
push 0x67
push edi
call fcn.004203e0
test eax, eax
je 0x41a2d3
push 0
push 0
push 0
push 0x67
push edi
call fcn.004203e0
test eax, eax
je 0x41a2d3
mov ecx, dword [edi + 0x38c]
mov edx, dword [edi + 0x350]
push 0
mov dword [ecx + 4], edx
mov eax, dword [edi + 0x34c]
push 0
push eax
mov ecx, edi
call fcn.00427060
test eax, eax
je 0x41a2d3
push 3
push 0
push str.ErrorLevel
mov ecx, edi
call fcn.00424e50
mov dword [0x4bbf74], eax
test eax, eax
je 0x41a2d3
push 1
push 0
push 0xffffffffffffffff
push 0x4a6904
push eax
call fcn.00481890
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
call fcn.00416a60
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret