Function at 0x4082e2
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x421c83
call fcn.00412428
mov esi, ecx
mov edi, edx
push 0x426acc
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1c4], edi
call fcn.00402200
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov edx, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00406cbf
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402dcc
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x408339
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x1c0]
push ecx
push eax
call esi
mov dword [ebp - 0x1d0], eax
mov byte [ebp - 0x1cc], 1
mov byte [ebp - 4], 3
cmp eax, 0xffffffff
jne 0x40842e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x40842a
push 0x426370
mov dword [ebp - 0x1dc], 0x426ae0
mov dword [ebp - 0x1d8], 0x426df8
mov dword [ebp - 0x1d4], 0x328
lea ebx, [ebp - 0x1dc]
call edi
push eax
push esi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x1c4], esp
push dword [ebp - 0x1c8]
call fcn.004021df
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 4
call fcn.00402538
lea eax, [ebp - 0x280]
push 0x426e14
push eax
mov byte [ebp - 4], 5
call fcn.004038ea
pop ecx
pop ecx
lea esi, [ebp - 0x280]
mov byte [ebp - 4], 6
call fcn.00403822
mov esi, eax
push 0x426394
push esi
call fcn.004038ea
pop ecx
pop ecx
mov ecx, esi
lea edi, [ebp - 0x1e8]
call fcn.004068e6
lea ecx, [ebp - 0x54]
push ecx
mov esi, ebx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00403852
mov dword [esp], 0x428cb4
lea eax, [ebp - 0x54]
push eax
call fcn.00411f8f
push 0xffffffffffffffff
jmp 0x40849f
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402200
mov edx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00406cbf
pop ecx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c0], 0xffffffff
je 0x408470
test byte [ebp - 0x1c0], 0x10
jne 0x4084b6
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
call dword [eax + 4]
test al, al
jne 0x40850f
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402dcc
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00402dcc
push dword [ebp - 0x1d0]
call fcn.004082cd
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402dcc
call fcn.004124ab
ret
mov edi, 0x426764
push edi
call fcn.0040df00
pop ecx
push edi
mov edi, eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.004097f5
test eax, eax
je 0x408509
mov edi, 0x426e24
push edi
call fcn.0040df00
pop ecx
push edi
mov edi, eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.004097f5
test eax, eax
je 0x408509
mov ecx, dword [ebp - 0x1c4]
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
call dword [eax + 8]
test al, al
je 0x408483
mov edi, dword [ebp - 0x1c4]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402dcc
push ebx
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00402dcc
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1d0]
call esi
test eax, eax
jne 0x408434
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x408499
push 0x426370
mov dword [ebp - 0x1dc], 0x426ae0
mov dword [ebp - 0x1d8], 0x426df8
mov dword [ebp - 0x1d4], 0x33d
lea ebx, [ebp - 0x1dc]
call edi
push eax
push esi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x1c4], esp
push dword [ebp - 0x1c8]
call fcn.004021df
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402538
lea eax, [ebp - 0x280]
push 0x426e28
push eax
mov byte [ebp - 4], 0xb
call fcn.004038ea
pop ecx
pop ecx
lea esi, [ebp - 0x280]
mov byte [ebp - 4], 0xc
call fcn.00403822
mov esi, eax
push 0x426394
push esi
call fcn.004038ea
pop ecx
pop ecx
mov ecx, esi
lea edi, [ebp - 0x1e8]
call fcn.004068e6
lea ecx, [ebp - 0x7c]
push ecx
mov esi, ebx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00403852
mov dword [esp], 0x428cb4
lea eax, [ebp - 0x7c]
jmp 0x408424