Function at 0x10005620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21c4
call fcn.1001a150
mov eax, dword [0x10029494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, str.ENTERING________________________________________________EHCheckFilesInFolder
mov esi, 0x1002c2c8
mov dword [ebp - 0x2020], edi
call fcn.10001830
push edi
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
push str.getfile.txt
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.1000c903
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005705
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
lea ecx, [ebp - 0x1008]
push ecx
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.1000c903
lea edx, [ebp - 0x808]
add esp, 0xc
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHCheckFilesInFolder
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x2014]
push eax
push edi
push esi
mov dword [ebp - 0x2018], edi
mov dword [ebp - 0x2014], edi
call ebx
mov edi, eax
mov dword [ebp - 0x2018], edi
cmp edi, 0xffffffff
jne 0x1000574a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005744
or edi, edi
mov dword [ebp - 0x2014], edi
jmp 0x1000574a
mov edi, dword [ebp - 0x2018]
push 2
xor eax, eax
lea ecx, [ebp - 0x200c]
push ecx
push eax
push esi
mov dword [ebp - 0x2010], eax
mov dword [ebp - 0x200c], eax
call ebx
mov dword [ebp - 0x2010], eax
cmp eax, 0xffffffff
jne 0x10005787
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005781
or eax, 0xffffffff
or ecx, eax
jmp 0x1000578d
mov eax, dword [ebp - 0x2010]
mov ecx, dword [ebp - 0x200c]
sub eax, edi
sbb ecx, dword [ebp - 0x2014]
mov edi, eax
xor eax, eax
push eax
lea edx, [ebp - 0x200c]
push edx
push eax
push esi
mov dword [ebp - 0x202c], ecx
mov dword [ebp - 0x2010], eax
mov dword [ebp - 0x200c], eax
call ebx
mov dword [ebp - 0x2010], eax
cmp eax, 0xffffffff
jne 0x100057c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi + 1]
push eax
call fcn.1000ba7a
add esp, 4
push 0
lea ecx, [ebp - 0x201c]
push ecx
mov ebx, eax
push edi
push ebx
push esi
mov dword [ebp - 0x2014], ebx
mov dword [ebp - 0x201c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000582d
push str.ERROR______________ReadFileFALSE___FileName__
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000bb31
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
jmp 0x100056d0
xor ecx, ecx
cmp edi, dword [ebp - 0x201c]
jne 0x1000583f
cmp dword [ebp - 0x202c], ecx
je 0x10005870
push str.ERROR______________fileSize_dwbytesRead___FileName__
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000bb31
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
jmp 0x100056d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x2024]
push edx
push 0x100223fc
push ebx
mov byte [edi + ebx], 0
xor esi, esi
call fcn.1000d77d
add esp, 0xc
test eax, eax
je 0x100058c2
jmp 0x100058a0
mov dword [ebp + esi*4 - 0x21c0], eax
lea eax, [ebp - 0x2024]
push eax
push 0x100223fc
push 0
call fcn.1000d77d
add esp, 0xc
inc esi
test eax, eax
jne 0x100058a0
mov ebx, esi
xor esi, esi
test ebx, ebx
jle 0x1000596e
mov edi, edi
mov edx, dword [ebp + esi*4 - 0x21c0]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100058e0
sub eax, edi
inc eax
push eax
push edx
push 0x400
lea ecx, [ebp - 0x2008]
push ecx
lea edx, [ebp - 0x200c]
push edx
call fcn.1000dabf
mov eax, dword [ebp - 0x2020]
add esp, 0x14
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
push 0x10021118
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000c903
add esp, 0xc
lea eax, [ebp - 0x2008]
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x808]
call fcn.10001730
test al, al
je 0x1000599f
inc esi
cmp esi, ebx
jl 0x100058d0
mov edx, dword [ebp - 0x2014]
push edx
call fcn.1000bd44
add esp, 4
mov edx, str.LEAVING________________________________________________EHExecuteFilesInFolder
mov esi, 0x1002c2c8
call fcn.10001830
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push 0x10022400
lea edx, [ebp - 0x1808]
push 0x400
push edx
call fcn.1000bb31
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x1808]
push 0x400
push ecx
call fcn.1000c903
lea edx, [ebp - 0x1808]
jmp 0x100056db