Function at 0x405500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19c4
call fcn.00413f90
mov eax, dword [0x41e494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edx, str.ENTERING________________________________________________EHExecuteFilesInFolder
mov dword [ebp - 0x1824], esi
call fcn.00401870
push esi
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.00406b82
add esp, 0xc
push str.getfileOnline.txt
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.0040795d
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 0x4055c3
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00406b82
add esp, 0xc
lea ecx, [ebp - 0x1008]
push ecx
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.0040795d
add esp, 0xc
lea edx, [ebp - 0x808]
call fcn.00401870
jmp 0x40583e
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x1814]
push eax
push edi
push esi
mov dword [ebp - 0x1818], edi
mov dword [ebp - 0x1814], edi
call ebx
mov edi, eax
mov dword [ebp - 0x1818], edi
cmp edi, 0xffffffff
jne 0x405608
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405602
or edi, edi
mov dword [ebp - 0x1814], edi
jmp 0x405608
mov edi, dword [ebp - 0x1818]
push 2
xor eax, eax
lea ecx, [ebp - 0x180c]
push ecx
push eax
push esi
mov dword [ebp - 0x1810], eax
mov dword [ebp - 0x180c], eax
call ebx
mov dword [ebp - 0x1810], eax
cmp eax, 0xffffffff
jne 0x405645
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40563f
or eax, 0xffffffff
or ecx, eax
jmp 0x40564b
mov eax, dword [ebp - 0x1810]
mov ecx, dword [ebp - 0x180c]
sub eax, edi
sbb ecx, dword [ebp - 0x1814]
mov edi, eax
xor eax, eax
push eax
lea edx, [ebp - 0x180c]
push edx
push eax
push esi
mov dword [ebp - 0x182c], ecx
mov dword [ebp - 0x1810], eax
mov dword [ebp - 0x180c], eax
call ebx
mov dword [ebp - 0x1810], eax
cmp eax, 0xffffffff
jne 0x405686
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi + 1]
push eax
call fcn.004071e1
add esp, 4
push 0
lea ecx, [ebp - 0x181c]
push ecx
mov ebx, eax
push edi
push ebx
push esi
mov dword [ebp - 0x1814], ebx
mov dword [ebp - 0x181c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4056eb
push str.ERROR______________ReadFileFALSE___FileName__
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.00406b82
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
jmp 0x4055ab
xor ecx, ecx
cmp edi, dword [ebp - 0x181c]
jne 0x4056fd
cmp dword [ebp - 0x182c], ecx
je 0x40572e
push str.ERROR______________fileSize_dwbytesRead___FileName__
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.00406b82
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
jmp 0x4055ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1820]
push edx
push 0x41a6dc
push ebx
mov byte [edi + ebx], 0
xor esi, esi
call fcn.004087b9
add esp, 0xc
test eax, eax
je 0x405782
jmp 0x405760
mov dword [ebp + esi*4 - 0x19c0], eax
lea eax, [ebp - 0x1820]
push eax
push 0x41a6dc
push 0
call fcn.004087b9
add esp, 0xc
inc esi
test eax, eax
jne 0x405760
mov ebx, esi
xor esi, esi
test ebx, ebx
jle 0x40582f
mov edi, edi
mov ecx, dword [ebp + esi*4 - 0x19c0]
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4057a0
sub eax, edi
inc eax
push eax
push ecx
push 0x400
lea ecx, [ebp - 0x1808]
push ecx
lea edx, [ebp - 0x180c]
push edx
call fcn.00408afb
mov eax, dword [ebp - 0x1824]
add esp, 0x14
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.00406b82
add esp, 0xc
push 0x41a0f4
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.0040795d
add esp, 0xc
lea eax, [ebp - 0x1808]
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.0040795d
lea edx, [ebp - 0x808]
add esp, 0xc
push edx
call dword [0x42039c]
inc esi
add esp, 4
cmp esi, ebx
jl 0x405790
mov eax, dword [ebp - 0x1814]
push eax
call fcn.00406d5b
add esp, 4
mov edx, str.LEAVING________________________________________________EHExecuteFilesInFolder
call fcn.00401870
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b73
mov esp, ebp
pop ebp
ret