Function at 0x40bf90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be49b
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2d4], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2cc], ebx
mov byte [ebp - 4], 1
lea eax, [ebx + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov edi, esp
push 0xdead0009
push 0x228beef
lea edx, [ebp - 0x30]
push edx
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x40c00e
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00406010
mov eax, 4
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x2cc], eax
cmp eax, ebx
je 0x40c04f
mov dword [eax], 0xabab0228
mov dword [ebp - 4], ebx
jmp 0x40c063
mov eax, dword [ebp - 0x2cc]
cmp eax, ebx
je 0x40c073
mov dword [eax], 0xcdcd0228
mov dword [ebp - 0x2c8], 6
test byte [0x679728], 1
jne 0x40c0a6
or dword [0x679728], 1
mov byte [ebp - 4], 4
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x2c8]
push eax
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x40c1e0
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov byte [ebp - 4], 5
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x34], ebx
mov esi, 7
mov byte [ebp - 4], 7
lea edi, [ebp - 0x54]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x40c102
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x40c110
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 8
test byte [0x679728], 1
jne 0x40c152
or dword [0x679728], 1
mov byte [ebp - 4], 9
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 8
mov ecx, 0x6796dc
mov dword [ebp - 0x2c8], ecx
mov edx, dword [0x6796dc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x40c19b
cmp dword [edi + 0x14], 8
jb 0x40c180
mov eax, dword [edi]
jmp 0x40c182
mov eax, edi
mov edx, dword [ecx]
push 0x228
push str.FileHandler::GetAllFilesImp
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 8
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 8
jb 0x40c1c6
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x54]
push eax
call fcn.00419280
jmp 0x40c1e5
mov esi, 7
mov eax, dword [ebp - 0x2cc]
cmp eax, ebx
je 0x40c1f5
mov dword [eax], 0xcdcd0229
mov dword [ebp - 0x2c8], 6
test byte [0x679728], 1
jne 0x40c228
or dword [0x679728], 1
mov byte [ebp - 4], 0xb
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c8]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x40c362
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x2d0]
push edx
push str.EnterFunction_Path_
lea edi, [ebp - 0x54]
call fcn.004193b0
mov ecx, eax
call fcn.004162f0
add esp, 4
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
push ecx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 0xf
test byte [0x679728], 1
jne 0x40c2d0
or dword [0x679728], 1
mov byte [ebp - 4], 0x10
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, 0x6796dc
mov dword [ebp - 0x2c8], ecx
mov edx, dword [0x6796dc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x40c319
cmp dword [edi + 0x14], 8
jb 0x40c2fe
mov eax, dword [edi]
jmp 0x40c300
mov eax, edi
mov edx, dword [ecx]
push 0x229
push str.FileHandler::GetAllFilesImp
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xf
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xe
mov edi, 8
cmp dword [ebp - 0x1c], edi
jb 0x40c348
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x54]
push eax
call fcn.00419280
jmp 0x40c367
mov edi, 8
mov byte [ebp - 0x2c1], 1
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
xor ecx, ecx
mov word [ebp - 0x70], cx
push 0xffffffffffffffff
push ebx
mov edx, dword [ebp - 0x2d0]
push edx
lea ecx, [ebp - 0x70]
call fcn.00406730
mov byte [ebp - 4], 0x12
push 1
push 0x6135f4
lea ecx, [ebp - 0x70]
call fcn.004044f0
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406070
cmp dword [ebp - 0x5c], edi
mov eax, dword [ebp - 0x70]
jae 0x40c3b9
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x40c415
mov byte [ebp - 4], bl
cmp dword [ebp - 0x5c], edi
jb 0x40c3e7
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
xor eax, eax
mov word [ebp - 0x70], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x24], edi
jb 0x40c40c
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
xor al, al
jmp 0x40c6e6
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
xor eax, eax
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c430
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00406180
mov byte [ebp - 4], 0x13
push 1
push 0x6135f8
mov edx, dword [ebp - 0x3c]
push edx
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00416c10
test eax, eax
je 0x40c76a
push 2
push 0x613798
mov eax, dword [ebp - 0x3c]
push eax
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00416c10
test eax, eax
je 0x40c76a
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
push 0xffffffffffffffff
push ebx
mov edx, dword [ebp - 0x2d0]
push edx
lea ecx, [ebp - 0x30]
call fcn.00406730
mov byte [ebp - 4], 0x14
push 1
push 0x6135f4
lea ecx, [ebp - 0x30]
call fcn.004044f0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406070
test byte [ebp - 0x2c0], 0x10
je 0x40c712
cmp byte [ebp + 0xc], bl
je 0x40c717
sub esp, 0x1c
mov dword [ebp - 0x2d8], esp
mov ecx, esp
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
xor edx, edx
mov word [ecx], dx
push 1
push 0x61387c
call fcn.00406180
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x2d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 0x14
call fcn.0040b830
add esp, 0x28
mov byte [ebp - 0x2c1], al
cmp al, bl
jne 0x40c717
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x1c], edi
jb 0x40c546
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
xor eax, eax
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x38], edi
jb 0x40c568
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
xor edx, edx
mov word [ebp - 0x4c], dx
mov eax, dword [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2cc]
cmp eax, ebx
je 0x40c591
mov dword [eax], 0xcdcd0257
mov dword [ebp - 0x2c8], 6
test byte [0x679728], 1
jne 0x40c5c5
or dword [0x679728], 1
mov byte [ebp - 4], 0x16
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c8]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x40c69f
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x2d0]
push edx
push str.ExitFunction_Path_
lea edi, [ebp - 0x54]
call fcn.004193b0
mov ecx, eax
call fcn.004162f0
add esp, 4
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
push ecx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1a
push 0x257
push str.FileHandler::GetAllFilesImp
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0x1c], 8
jb 0x40c677
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor eax, eax
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x54]
push ecx
call fcn.00419280
mov esi, 7
xor ebx, ebx
mov byte [ebp - 4], bl
mov edi, 8
cmp dword [ebp - 0x5c], edi
jb 0x40c6b9
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
xor eax, eax
mov word [ebp - 0x70], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x24], edi
jb 0x40c6de
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov al, byte [ebp - 0x2c1]
mov word [ebp + 0x10], dx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], esi
lea esp, [ebp - 0x2e8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x3c], ebx
je 0x40c72a
lea ecx, [ebp - 0x30]
mov edi, dword [ebp - 0x2d4]
call fcn.00415a20
mov edi, 8
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x1c], edi
jb 0x40c740
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x38], edi
jb 0x40c762
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x4c], ax
jmp 0x40c786
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x38], edi
jb 0x40c780
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c415
jmp 0x40c574