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

Disassembly:
push 0x274
mov eax, 0x42209d
call fcn.004127a4
mov esi, ecx
mov edi, edx
push 0x426af8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1c4], edi
call fcn.0040219b
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov edx, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00406d6d
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402da4
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x408410
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 0x408505
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 2
je 0x408501
push 0x426388
mov dword [ebp - 0x1dc], 0x426b08
mov dword [ebp - 0x1d8], 0x426e28
mov dword [ebp - 0x1d4], 0x32b
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.0040217a
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 4
call fcn.004024e5
lea eax, [ebp - 0x280]
push 0x426e44
push eax
mov byte [ebp - 4], 5
call fcn.004038bf
pop ecx
pop ecx
lea esi, [ebp - 0x280]
mov byte [ebp - 4], 6
call fcn.004037f7
mov esi, eax
push 0x4263ac
push esi
call fcn.004038bf
pop ecx
pop ecx
mov ecx, esi
lea edi, [ebp - 0x1e8]
call fcn.00406994
lea ecx, [ebp - 0x54]
push ecx
mov esi, ebx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00403827
mov dword [esp], 0x428d3c
lea eax, [ebp - 0x54]
push eax
call main
push 0xffffffffffffffff
jmp 0x408576
mov esi, dword [sym.imp.kernel32.dll_FindNextFileA]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040219b
mov edx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00406d6d
pop ecx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c0], 0xffffffff
je 0x408547
test byte [ebp - 0x1c0], 0x10
jne 0x40858d
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
call dword [eax + 4]
test al, al
jne 0x4085e6
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402da4
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00402da4
push dword [ebp - 0x1d0]
call fcn.004083a4
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402da4
call fcn.00412827
ret
mov edi, 0x426784
push edi
call fcn.0040e280
pop ecx
push edi
mov edi, eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.004098be
test eax, eax
je 0x4085e0
mov edi, 0x426e54
push edi
call fcn.0040e280
pop ecx
push edi
mov edi, eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.004098be
test eax, eax
je 0x4085e0
mov ecx, dword [ebp - 0x1c4]
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
call dword [eax + 8]
test al, al
je 0x40855a
mov edi, dword [ebp - 0x1c4]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402da4
push ebx
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00402da4
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1d0]
call esi
test eax, eax
jne 0x40850b
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x408570
push 0x426388
mov dword [ebp - 0x1dc], 0x426b08
mov dword [ebp - 0x1d8], 0x426e28
mov dword [ebp - 0x1d4], 0x340
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.0040217a
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 0xa
call fcn.004024e5
lea eax, [ebp - 0x280]
push 0x426e58
push eax
mov byte [ebp - 4], 0xb
call fcn.004038bf
pop ecx
pop ecx
lea esi, [ebp - 0x280]
mov byte [ebp - 4], 0xc
call fcn.004037f7
mov esi, eax
push 0x4263ac
push esi
call fcn.004038bf
pop ecx
pop ecx
mov ecx, esi
lea edi, [ebp - 0x1e8]
call fcn.00406994
lea ecx, [ebp - 0x7c]
push ecx
mov esi, ebx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00403827
mov dword [esp], 0x428d3c
lea eax, [ebp - 0x7c]
jmp 0x4084fb