Function at 0x4162f0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xab4]
mov byte [edi + 0x274], 1
mov word [edi + 0xacc], 0
test eax, eax
je 0x41662c
cmp word [eax], 0
je 0x41662c
mov ecx, 0x14
call fcn.00470370
mov dword [esp + 0x18], eax
test eax, eax
je 0x416357
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4ac22c
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x416359
xor eax, eax
mov dword [edi + 0x634], eax
test eax, eax
je 0x41662c
cmp byte [0x4d1ff6], 0
mov eax, 0x4c1788
jne 0x41637b
mov eax, dword [edi + 0xab4]
sub esp, 8
mov ecx, edi
push eax
call fcn.004167d0
cmp eax, 1
jne 0x41662c
push 0
push 0
push 0
push 0x68
mov ecx, edi
call fcn.0041c510
test eax, eax
je 0x41662c
mov ebp, dword [edi]
test ebp, ebp
je 0x416452
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp byte [ebp + 1], cl
jbe 0x41642d
xor eax, eax
mov dword [esp + 0x14], eax
mov ebx, dword [ebp + 8]
add ebx, eax
cmp byte [ebx + 1], 0
je 0x416415
mov esi, dword [ebx + 8]
test esi, esi
je 0x4163fd
cmp dword [esi], 0
je 0x4163fd
cmp byte [esi + 8], 0
je 0x4163f5
movzx eax, word [esi + 0xa]
mov ecx, edi
push 0
push eax
push dword [esi]
call fcn.0041f590
mov dword [esi + 4], eax
test eax, eax
je 0x41643a
add esi, 0xc
cmp dword [esi], 0
jne 0x4163d8
push ebx
mov ecx, ebp
call fcn.00422070
test eax, eax
je 0x41662c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, 0x10
inc ecx
mov dword [esp + 0x14], eax
movzx eax, byte [ebp + 1]
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x14]
jl 0x4163c1
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x4163b0
jmp 0x416452
push dword [esi]
mov ecx, ebp
push 0
push str.Call_to_nonexistent_function.
call fcn.0042d1e0
test eax, eax
je 0x41662c
mov ecx, dword [edi]
test ecx, ecx
je 0x4164a7
mov al, byte [ecx]
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
cmp al, 8
je 0x41646d
cmp al, 0xe1
jne 0x4164a1
mov byte [ecx], 0x11
jmp 0x41648a
mov al, byte [ecx + 0xc]
mov byte [ecx], al
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x416484
mov dword [eax + 0x14], ecx
jmp 0x416487
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
test esi, esi
je 0x416493
mov dword [esi + 0x14], edx
jmp 0x416495
mov dword [edi], edx
test edx, edx
je 0x41649e
mov dword [edx + 0x10], esi
jmp 0x4164a1
mov dword [edi + 4], esi
mov ecx, edx
test edx, edx
jne 0x416458
cmp dword [edi + 8], 0
je 0x4164c2
mov ecx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [ecx + 0x14], eax
mov ecx, dword [edi]
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 8]
mov dword [edi], eax
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
jle 0x416500
nop dword [eax]
mov eax, dword [edi + 0x18]
mov esi, dword [eax + ebx*4]
cmp byte [esi + 0x3d], 0
jne 0x4164fa
lea eax, [esi + 0x28]
mov ecx, edi
push eax
push dword [esi + 0x1c]
push esi
call fcn.0042dbe0
lea eax, [esi + 0x30]
mov ecx, edi
push eax
push dword [esi + 0x20]
push esi
call fcn.0042dbe0
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x4164d0
mov eax, dword [edi + 0x260]
test eax, eax
je 0x416578
cmp dword [eax + 0x10], 0
je 0x416562
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [eax + 8]
test ecx, ecx
je 0x416562
push str.__Class
lea eax, [esp + 0x1c]
push eax
call fcn.00413d10
test al, al
je 0x416543
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x26c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x270], eax
push esi
push str.Unknown_class.
mov ecx, edi
mov dword [edi + 0x630], 0
call fcn.0042d580
test eax, eax
je 0x41662c
mov eax, dword [edi + 0x260]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [edi + 0x260], 0
push dword [0x4d16a8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [edi + 0x270]
mov ecx, edi
push 0
push 0
push 0
push 0x68
call fcn.0041c510
test eax, eax
je 0x41662c
push 0
push 0
push 0
push 0x68
mov ecx, edi
call fcn.0041c510
test eax, eax
je 0x41662c
mov ecx, dword [edi + 0x634]
mov eax, dword [edi + 4]
push 0
push 0
mov dword [ecx + 8], eax
mov ecx, edi
push 0
push dword [edi]
call fcn.00421650
test eax, eax
je 0x41662c
push dword [edi]
mov ecx, edi
call fcn.00421960
test eax, eax
je 0x41662c
push 3
push 0
push 0x4c178c
mov ecx, edi
call fcn.00420d30
mov dword [0x4d166c], eax
test eax, eax
je 0x41662c
push 1
push 0
push 0xffffffffffffffff
push 0x4ac300
mov ecx, eax
call fcn.00475930
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x18]
call fcn.00412fb0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret