Function at 0x42561e
Capabilities:
Get file attributes
Set current directory

Disassembly:
mov eax, 0x463c98
call fcn.00451b80
sub esp, 0x308
push ebx
push esi
push edi
mov al, byte [ebp + 0x23]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], al
call fcn.004079c3
mov al, byte [ebp + 0x23]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov byte [ebp - 0x2c], al
call fcn.004079c3
mov al, byte [ebp + 0x23]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
mov byte [ebp - 0x3c], al
call fcn.004079c3
mov esi, 0x47cdfc
push esi
call fcn.004525b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040819b
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 3
cmp eax, ebx
mov edi, 0x466500
jne 0x425693
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [0x466504]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push ebx
push eax
call fcn.004080af
mov esi, str..
push esi
call fcn.004525b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040796c
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x4256cc
mov eax, edi
lea ecx, [ebp - 0x180]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x425839
lea eax, [ebp - 0x154]
push 0x47506c
push eax
call fcn.004535bc
pop ecx
test eax, eax
pop ecx
je 0x42581c
lea eax, [ebp - 0x154]
push 0x475068
push eax
call fcn.004535bc
pop ecx
test eax, eax
pop ecx
je 0x42581c
push dword [0x466504]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.004080af
push 0x5c
push 1
lea ecx, [ebp - 0x1c]
call fcn.00408d95
lea eax, [ebp - 0x154]
push eax
call fcn.004525b0
pop ecx
push eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040796c
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x425760
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test byte [ebp - 0x180], 0x10
je 0x425797
push dword [ebp + 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00418a7f
push dword [ebp + 8]
call fcn.0042561e
add esp, 0x1c
jmp 0x42581c
mov al, byte [ebp + 0x20]
mov byte [ebp - 0x314], al
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x1d3]
push eax
call fcn.00452490
push dword [ebp + 8]
lea eax, [ebp - 0x213]
push eax
call fcn.00452490
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, ebx
jne 0x4257ce
mov eax, edi
push eax
lea eax, [ebp - 0x313]
push eax
call fcn.00452490
mov eax, dword [ebp - 0x16c]
pop ecx
mov dword [ebp - 0x193], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x18f], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x18b], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x187], eax
pop ecx
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x314]
push eax
call fcn.0042620b
lea eax, [ebp - 0x180]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4256e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
lea ecx, [ebp - 0x3c]
pop esi
mov byte [ebp - 4], 2
push esi
call fcn.004079c3
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004079c3
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004079c3
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 0xc]
call fcn.004079c3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret