Function at 0x438b60
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459461
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
mov ebx, dword [ebp + 8]
cdq
push edx
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x348], ebx
push eax
call fcn.00409b90
push 0x45ac78
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.00404f30
add esp, 0x18
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x340]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x344], eax
cmp eax, 0xffffffff
je 0x439151
push 0x50
lea eax, [ebp - 0xf0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xf0]
call fcn.00406bf0
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov esi, dword [ebp - 0x344]
mov byte [ebp - 4], 2
nop word [eax + eax]
lea eax, [ebp - 0x314]
push eax
push 0x45ac80
call ebx
test eax, eax
je 0x439129
lea eax, [ebp - 0x314]
push eax
push 0x45ac84
call ebx
test eax, eax
je 0x439129
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x314], ax
je 0x438c91
lea eax, [ebp - 0x314]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438c82
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403e00
mov ebx, dword [ebp - 0x340]
shr ebx, 4
mov byte [ebp - 4], 3
and bl, 1
jne 0x438cfa
cmp dword [0x474af8], 1
lea eax, [ebp - 0x28]
push eax
jne 0x438cdd
call fcn.00439f90
add esp, 4
test al, al
jne 0x438cfa
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401c60
jmp 0x439123
call fcn.0043a080
add esp, 4
test al, al
je 0x438cfa
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401c60
jmp 0x439123
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xf0]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040cb20
mov ecx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x338]
add ecx, 0x2ac18000
push 0
push 0x2710
adc eax, 0xfe624e21
mov byte [ebp - 4], 4
push eax
push ecx
call fcn.00424980
push edx
push eax
lea eax, [ebp - 0x3b0]
push eax
call fcn.00409b90
mov esi, eax
push 0x45eff0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x398]
push eax
call fcn.00438860
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x380]
push eax
call fcn.00438820
push 0x45eff0
push eax
lea eax, [ebp - 0x368]
mov byte [ebp - 4], 7
push eax
call fcn.0040e160
push esi
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
call fcn.0040e0f0
add esp, 0x3c
mov eax, dword [ebp - 0x354]
cmp eax, 0x10
jb 0x438dc4
inc eax
push 1
push eax
push dword [ebp - 0x368]
call fcn.004035c0
add esp, 0xc
mov dword [ebp - 0x354], 0xf
mov dword [ebp - 0x358], 0
mov byte [ebp - 0x368], 0
mov eax, dword [ebp - 0x36c]
cmp eax, 0x10
jb 0x438dfc
inc eax
push 1
push eax
push dword [ebp - 0x380]
call fcn.004035c0
add esp, 0xc
mov dword [ebp - 0x36c], 0xf
mov dword [ebp - 0x370], 0
mov byte [ebp - 0x380], 0
mov eax, dword [ebp - 0x384]
cmp eax, 0x10
jb 0x438e34
inc eax
push 1
push eax
push dword [ebp - 0x398]
call fcn.004035c0
add esp, 0xc
mov dword [ebp - 0x384], 0xf
mov dword [ebp - 0x388], 0
mov byte [ebp - 0x398], 0
mov eax, dword [ebp - 0x39c]
mov byte [ebp - 4], 0xd
cmp eax, 0x10
jb 0x438e70
inc eax
push 1
push eax
push dword [ebp - 0x3b0]
call fcn.004035c0
add esp, 0xc
mov dword [ebp - 0x39c], 0xf
mov dword [ebp - 0x3a0], 0
mov byte [ebp - 0x3b0], 0
test bl, bl
jne 0x438f18
push 0
push dword [ebp - 0x320]
lea eax, [ebp - 0x3c8]
push eax
call fcn.00409b90
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xe
push 0x45eff0
push eax
call fcn.0040e290
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xf
call fcn.004037b0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x438ee5
inc eax
push 1
push eax
push dword [ebp - 0x40]
call fcn.004035c0
add esp, 0xc
mov eax, dword [ebp - 0x3b4]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0xd
cmp eax, 0x10
jb 0x438f18
inc eax
push 1
push eax
push dword [ebp - 0x3c8]
call fcn.004035c0
add esp, 0xc
push 1
push 0x45eff4
lea ecx, [ebp - 0x58]
call fcn.004038a0
push dword [0x474af4]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
test bl, bl
je 0x4390b0
cmp edi, dword [0x474afc]
jge 0x4390b0
push dword [ebp - 0x348]
mov esi, dword [0x474b04]
lea eax, [ebp - 0x28]
push eax
push esi
push dword [0x474b00]
call fcn.00438a30
add esp, 0x10
cmp eax, esi
setne al
test al, al
jne 0x4390b0
push 0x45a8d4
push dword [ebp - 0x348]
lea eax, [ebp - 0x3c8]
push eax
call fcn.00404f30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404e90
add esp, 0x18
lea ecx, [ebp - 0x3c8]
mov byte [ebp - 4], 0x12
call fcn.00401c60
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x439035
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x34c], esp
push eax
call fcn.00411640
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push 0x45eff8
call fcn.004025f0
mov byte [ebp - 4], 0x12
call fcn.00404730
add esp, 0x30
lea ecx, [ebp - 0x40]
call fcn.00401c60
lea ecx, [ebp - 0x58]
call fcn.00402850
lea ecx, [ebp - 0x70]
call fcn.00402850
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401c60
jmp 0x43911d
test eax, 0x400
je 0x439098
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x350], esp
push eax
call fcn.00411640
sub esp, 0x18
mov byte [ebp - 4], 0x14
mov ecx, esp
push str.not_real_dir:
call fcn.004025f0
mov byte [ebp - 4], 0x12
call fcn.00404730
add esp, 0x30
lea ecx, [ebp - 0x40]
call fcn.00401c60
lea ecx, [ebp - 0x58]
call fcn.00402850
lea ecx, [ebp - 0x70]
call fcn.00402850
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401c60
jmp 0x43911d
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00438b60
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00401c60
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4390c7
inc eax
push 1
push eax
push dword [ebp - 0x58]
call fcn.004035c0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x4390f0
inc eax
push 1
push eax
push dword [ebp - 0x70]
call fcn.004035c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x43911d
push 2
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
mov esi, dword [ebp - 0x344]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea eax, [ebp - 0x340]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x438c30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0xf0]
call fcn.00407190
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x43916b
push 2
inc eax
push eax
push dword [ebp - 0x88]
call fcn.004035c0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
cmp eax, 0x10
jb 0x43919f
push 1
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.004035c0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret