Function at 0x42257f
Capabilities:
Set current directory

Disassembly:
mov eax, 0x457ad8
call fcn.004324bc
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x1c]
mov edi, 0x474888
lea ebx, [esi + 0x20]
mov ecx, edi
push ebx
push eax
call fcn.0041ac30
and dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00448287
lea ebx, [esi + 0x24]
lea eax, [esi + 0x60]
push eax
mov ecx, ebx
call fcn.00448374
lea eax, [esi + 0x20]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004218ea
add esp, 0xc
lea eax, [esi + 0x28]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 1
call fcn.0041ac30
lea edi, [esi + 0x28]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00448287
push 0x4747d0
lea ecx, [ebp - 0x10]
call fcn.004482f5
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebp + 0x14], eax
je 0x42294d
cmp dword [ebp + 0x18], eax
push eax
push ecx
mov ecx, esp
je 0x422887
mov dword [ebp + 0x18], esp
push 0x47018c
call fcn.004482f5
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.00447ffc
mov byte [ebp - 4], 3
call fcn.0040f192
add esp, 0xc
test eax, eax
push 0x46f9dc
jne 0x422775
lea ecx, [ebp + 0x18]
call fcn.004482f5
lea eax, [ebp + 0x18]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00448287
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.00448287
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040be4f
add esp, 4
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0040de27
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00448374
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.00448287
push ecx
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push ebx
call fcn.00447ffc
push edi
call fcn.0040be4f
add esp, 4
mov byte [ebp - 4], 9
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0040de27
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.00448374
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
jmp 0x4229df
lea ecx, [ebp + 0x18]
call fcn.004482f5
lea eax, [esi + 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00448287
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.00448287
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040be4f
add esp, 4
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0040de27
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.00448374
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.00448287
push ecx
lea eax, [esi + 0x2c]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040be4f
add esp, 4
mov byte [ebp - 4], 0xf
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
lea eax, [esi + 0x2c]
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0040de27
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.00448374
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
jmp 0x4229df
mov dword [ebp + 0x18], esp
push 0x47018c
call fcn.004482f5
push ecx
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.00447ffc
mov byte [ebp - 4], 3
call fcn.0040f192
add esp, 0xc
test eax, eax
push 0x46f9dc
jne 0x4228fb
lea ecx, [ebp + 0x18]
call fcn.004482f5
lea eax, [ebp + 0x18]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x12
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x12
call fcn.00448287
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
jmp 0x4229df
lea ecx, [ebp + 0x18]
call fcn.004482f5
lea edi, [esi + 0x2c]
lea eax, [ebp + 0x18]
push edi
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x14
push eax
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x15
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x14
call fcn.00448287
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.00448287
push edi
mov ecx, ebx
call fcn.00448374
jmp 0x4229e4
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004218ea
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00448287
cmp dword [ebp + 0x18], 0
je 0x4229e4
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040be4f
add esp, 4
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
lea eax, [ebp + 0x18]
pop ecx
mov byte [ebp - 4], 3
push eax
call fcn.0040de27
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x18
call fcn.00448374
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
call fcn.00448287
cmp dword [esi + 0x78], 0
je 0x4229fc
cmp dword [ebp + 0x10], 0
je 0x4229fc
mov dword [ebp + 0x18], 8
jmp 0x422bd5
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00447ffc
call fcn.0040b3e4
test eax, eax
pop ecx
jne 0x422a21
mov dword [ebp + 0x18], 0xe
jmp 0x422bd5
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp + 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040b31f
test eax, eax
pop ecx
jne 0x422a86
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00447ffc
lea eax, [ebp + 0x18]
push eax
call fcn.0040b60c
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, eax
lea ecx, [ebp + 0x18]
neg ebx
sbb bl, bl
inc bl
call fcn.00448287
test bl, bl
je 0x422a86
push 0xf
pop eax
jmp 0x422bd8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call edi
cmp dword [ebp + 0x14], 0
push 1
pop ecx
mov edx, ecx
je 0x422aaf
xor edx, edx
cmp dword [esi + 0x44], 0
je 0x422abd
mov eax, dword [esi + 0x68]
cmp eax, 6
jne 0x422ac2
mov eax, dword [esi + 0x68]
mov ecx, eax
cmp dword [ebp + 0x14], 0
je 0x422ae6
cmp eax, 6
jne 0x422ae6
xor ebx, ebx
push edx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004251bb
add esp, 0x10
mov dword [ebp - 0x18], eax
jmp 0x422afd
push edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004251bb
add esp, 0x10
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov eax, dword [ebp - 0x18]
cmp eax, 0xd
mov dword [ebp + 0x18], eax
jge 0x422bc7
cmp dword [ebp + 0x14], ebx
jne 0x422b1b
cmp dword [esi + 0x68], 6
je 0x422bd5
cmp dword [esi + 0x7c], ebx
je 0x422b3d
cmp dword [ebp + 0x14], ebx
jne 0x422b3d
cmp dword [esi + 0x78], ebx
je 0x422b2f
cmp dword [ebp + 0x10], ebx
jne 0x422b3d
cmp dword [esi + 0x44], ebx
jne 0x422b3d
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00414206
test byte [esi + 0x6c], 0x64
je 0x422b60
cmp dword [ebp + 0x14], ebx
jne 0x422b60
push 1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.00447ffc
call fcn.00410810
pop ecx
pop ecx
cmp dword [ebp - 0x18], 9
jge 0x422b92
lea edi, [esi + 0x58]
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00421829
pop ecx
test eax, eax
pop ecx
jne 0x422bd5
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00421829
pop ecx
test eax, eax
pop ecx
jne 0x422bd5
mov dword [ebp + 0x18], 0x10
jmp 0x422bd5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.00447ffc
lea eax, [ebp + 0x14]
push eax
call fcn.0040f656
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x19
call fcn.00445c02
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.00448287
jmp 0x422bd5
cmp dword [ebp - 0x1c], 0xffffffff
je 0x422bd5
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
lea ecx, [ebp - 0x10]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14