Function at 0x1003a580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c145b
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x10101404]
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.100b0040
mov dword [ebp - 0x10], esp
mov edi, esp
push 0xdead0009
push 0x228beef
lea edx, [ebp - 0x30]
push edx
call fcn.100018e0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1003a5fe
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.10002d60
mov eax, 4
call fcn.100b0040
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x2cc], eax
cmp eax, ebx
je 0x1003a63f
mov dword [eax], 0xabab0228
mov dword [ebp - 4], ebx
jmp 0x1003a653
mov eax, dword [ebp - 0x2cc]
cmp eax, ebx
je 0x1003a663
mov dword [eax], 0xcdcd0228
mov dword [ebp - 0x2c8], 6
test byte [0x10106d78], 1
jne 0x1003a696
or dword [0x10106d78], 1
mov byte [ebp - 4], 4
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x2c8]
push eax
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x1003a7d0
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.10031570
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x1003a6f2
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.1000bc70
jmp 0x1003a700
push str.EnterFunction
push ecx
call fcn.1000d880
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.10001860
mov edi, eax
mov byte [ebp - 4], 8
test byte [0x10106d78], 1
jne 0x1003a742
or dword [0x10106d78], 1
mov byte [ebp - 4], 9
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 8
mov ecx, 0x10106d2c
mov dword [ebp - 0x2c8], ecx
mov edx, dword [0x10106d2c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov ecx, dword [0x10106d74]
cmp ecx, ebx
je 0x1003a78b
cmp dword [edi + 0x14], 8
jb 0x1003a770
mov eax, dword [edi]
jmp 0x1003a772
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 [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 8
jb 0x1003a7b6
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.10031440
jmp 0x1003a7d5
mov esi, 7
mov eax, dword [ebp - 0x2cc]
cmp eax, ebx
je 0x1003a7e5
mov dword [eax], 0xcdcd0229
mov dword [ebp - 0x2c8], 6
test byte [0x10106d78], 1
jne 0x1003a818
or dword [0x10106d78], 1
mov byte [ebp - 4], 0xb
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c8]
push ecx
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x1003a94a
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
lea edi, [ebp - 0x54]
call fcn.10031570
mov ecx, eax
call fcn.10042070
push eax
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
push ecx
call fcn.10031630
mov ecx, eax
call fcn.10001860
mov edi, eax
mov byte [ebp - 4], 0xf
test byte [0x10106d78], 1
jne 0x1003a8b8
or dword [0x10106d78], 1
mov byte [ebp - 4], 0x10
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, 0x10106d2c
mov dword [ebp - 0x2c8], ecx
mov edx, dword [0x10106d2c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov ecx, dword [0x10106d74]
cmp ecx, ebx
je 0x1003a901
cmp dword [edi + 0x14], 8
jb 0x1003a8e6
mov eax, dword [edi]
jmp 0x1003a8e8
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 [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xe
mov edi, 8
cmp dword [ebp - 0x1c], edi
jb 0x1003a930
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.10031440
jmp 0x1003a94f
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.10002e80
mov byte [ebp - 4], 0x12
push 1
push 0x100cffa0
lea ecx, [ebp - 0x70]
call fcn.1000bc70
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x70]
call fcn.10011090
cmp dword [ebp - 0x5c], edi
mov eax, dword [ebp - 0x70]
jae 0x1003a9a1
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 0x1003aa00
mov byte [ebp - 4], bl
cmp dword [ebp - 0x5c], edi
jb 0x1003a9cf
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 0x1003a9f4
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 0x1003acc3
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]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1003aa15
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10003360
mov byte [ebp - 4], 0x13
push 1
push 0x100d3b30
mov edx, dword [ebp - 0x3c]
push edx
push ebx
lea ecx, [ebp - 0x4c]
call fcn.1000b820
test eax, eax
je 0x1003ad47
push 2
push 0x100d4938
mov eax, dword [ebp - 0x3c]
push eax
push ebx
lea ecx, [ebp - 0x4c]
call fcn.1000b820
test eax, eax
je 0x1003ad47
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.10002e80
mov byte [ebp - 4], 0x14
push 1
push 0x100cffa0
lea ecx, [ebp - 0x30]
call fcn.1000bc70
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.10011090
test byte [ebp - 0x2c0], 0x10
je 0x1003acef
cmp byte [ebp + 0xc], bl
je 0x1003acf4
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 0x100d16c4
call fcn.10003360
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.10039e30
add esp, 0x28
mov byte [ebp - 0x2c1], al
cmp al, bl
jne 0x1003acf4
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x1c], edi
jb 0x1003ab2b
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 0x1003ab4d
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 0x1003ab76
mov dword [eax], 0xcdcd0257
mov dword [ebp - 0x2c8], 6
test byte [0x10106d78], 1
jne 0x1003abaa
or dword [0x10106d78], 1
mov byte [ebp - 4], 0x16
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c8]
push ecx
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x1003ac7c
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
lea edi, [ebp - 0x54]
call fcn.10031570
mov ecx, eax
call fcn.10042100
push eax
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
push ecx
call fcn.10031630
mov ecx, eax
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x1a
push 0x257
push str.FileHandler::GetAllFilesImp
push str.FileHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x19
cmp dword [ebp - 0x1c], 8
jb 0x1003ac54
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.10031440
mov esi, 7
xor ebx, ebx
mov byte [ebp - 4], bl
mov edi, 8
cmp dword [ebp - 0x5c], edi
jb 0x1003ac96
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 0x1003acbb
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.100af1c6
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x3c], ebx
je 0x1003ad07
lea ecx, [ebp - 0x30]
mov edi, dword [ebp - 0x2d4]
call fcn.1002d820
mov edi, 8
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x1c], edi
jb 0x1003ad1d
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 0x1003ad3f
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 0x1003ad63
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x38], edi
jb 0x1003ad5d
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 0x1003aa00
jmp 0x1003ab59