Function at 0x404d2e
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x3fc], 0
lea edx, [ebp - 0x180]
and dword [ebp - 0x400], 0
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0x408], ebx
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x404d64
cmp dword [0x551b20], ebx
je 0x404d7b
call fcn.00404b8e
push 8
call fcn.00486927
mov dword [0x551b20], eax
pop ecx
test eax, eax
je 0x404d96
and dword [eax], ebx
mov eax, dword [0x551b20]
and dword [eax + 4], ebx
cmp dword [0x551b28], ebx
je 0x404da3
call fcn.00404c0a
push 0x1c
call fcn.00486927
mov edi, eax
mov dword [0x551b28], edi
pop ecx
test edi, edi
je 0x404dbe
push 7
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x2b0]
push edi
push esi
push eax
call fcn.00422060
add esp, 0xc
lea eax, [ebp - 0x180]
push edi
push esi
push eax
call fcn.00422540
add esp, 0xc
lea eax, [ebp - 0x3f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404e82
test byte [ebp - 0x3f8], 0x10
jne 0x404e1f
push edi
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.00422630
add esp, 0xc
test eax, eax
je 0x404e33
lea eax, [ebp - 0x3f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404dfb
jmp 0x404e7b
mov ecx, 0x4b2860
lea eax, [ebp - 0x3cc]
push ecx
push eax
lea eax, [ebp - 0x2b0]
push eax
push 0x1d9
push str.D:MyProjectsProPilotTestMain.c
push ecx
lea eax, [ebp - 0x180]
push 0x12c
push eax
call fcn.004236c0
lea eax, [ebp - 0x3cc]
push eax
call fcn.0048c9e8
mov ecx, dword [0x551b28]
add esp, 0x24
mov dword [ecx + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push eax
push 3
push eax
push 3
lea eax, [ebp - 0x180]
push SysReAllocString
push eax
call fcn.0041dce0
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x4052f3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0
mov dword [ebp - 0x40c], edi
call fcn.0048cba0
pop ecx
xor ecx, ecx
add edi, 1
setb cl
neg ecx
or ecx, edi
push ecx
push dword [ebp - 0x400]
call fcn.00483b6d
pop ecx
pop ecx
mov edi, eax
call fcn.0048cb8d
cmp dword [eax], 0xc
jne 0x404f4f
call fcn.00435f20
test eax, eax
je 0x404f47
call fcn.00435f20
cmp dword [eax], ebx
je 0x404f47
mov eax, dword [0x4edee0]
test eax, eax
je 0x404f0c
mov edi, dword [eax + 0x190]
jmp 0x404f12
mov edi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x404f24
call fcn.00435f20
mov eax, dword [eax]
jmp 0x404f26
xor eax, eax
mov ecx, str.Error_allocating_memory__
push ecx
push ecx
push dword [0x4edee0]
push edi
push 0
push 0x1e5
push str.D:MyProjectsProPilotTestMain.c
push 3
call eax
add esp, 0x20
mov edi, dword [ebp - 0x400]
jmp 0x404f55
mov dword [ebp - 0x400], edi
test edi, edi
je 0x4052e8
push 0
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x40c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4052e8
mov eax, dword [ebp - 0x40c]
cmp eax, dword [ebp - 0x2b4]
jne 0x4052e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 0x410], ecx
cmp ebx, 1
je 0x4052f3
movzx esi, byte [ecx + 0x4b1f40]
xor edi, edi
mov bl, byte [esi + 0x4b1f40]
lea eax, [esi + edi]
add eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x4b1f40]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov ecx, dword [ebp - 0x410]
mov esi, edx
mov bl, byte [esi + 0x4b1f40]
mov byte [ebp + edi - 0x28], bl
inc edi
cmp edi, 0x20
jl 0x404fb5
mov ebx, dword [ebp - 0x408]
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x3fc]
mov byte [ebp - 8], 0
push eax
push dword [ebp - 0x40c]
push dword [ebp - 0x400]
call fcn.0041e130
mov edi, eax
add esp, 0x14
test edi, edi
je 0x405298
push 0
call fcn.0048cba0
pop ecx
xor ecx, ecx
mov eax, edi
add eax, 4
setb cl
neg ecx
or ecx, eax
push ecx
push dword [ebp - 0x3fc]
call fcn.00483b6d
pop ecx
pop ecx
mov esi, eax
call fcn.0048cb8d
cmp dword [eax], 0xc
jne 0x4050bd
call fcn.00435f20
test eax, eax
je 0x4050b5
call fcn.00435f20
cmp dword [eax], 0
je 0x4050b5
mov eax, dword [0x4edee0]
test eax, eax
je 0x40507a
mov esi, dword [eax + 0x190]
jmp 0x405080
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x405092
call fcn.00435f20
mov eax, dword [eax]
jmp 0x405094
xor eax, eax
mov ecx, str.Error_allocating_memory__
push ecx
push ecx
push dword [0x4edee0]
push esi
push 0
push 0x1f8
push str.D:MyProjectsProPilotTestMain.c
push 3
call eax
add esp, 0x20
mov esi, dword [ebp - 0x3fc]
jmp 0x4050c3
mov dword [ebp - 0x3fc], esi
push edi
lea eax, [esi + 4]
push esi
push eax
call fcn.00480c20
mov eax, dword [ebp - 0x3fc]
add esp, 8
mov dword [eax], edi
push dword [0x551b20]
mov edx, dword [ebp - 0x3fc]
push str._::_0x
push 0x4b283c
call fcn.00404015
add esp, 0x10
test eax, eax
je 0x4052bd
xor edi, edi
cmp ebx, 1
je 0x4052a1
movzx esi, byte [edi + 0x4b2330]
xor ebx, ebx
mov ecx, 0x3e8
mov al, byte [esi + 0x4b2330]
mov byte [ebp - 0x401], al
lea eax, [esi + ebx]
add eax, edi
cdq
idiv ecx
movzx eax, byte [ebp - 0x401]
movzx ecx, byte [edx + 0x4b2330]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov esi, edx
mov al, byte [esi + 0x4b2330]
mov byte [ebp + ebx - 0x4c], al
inc ebx
mov byte [ebp - 0x401], al
cmp ebx, 0x20
jl 0x405124
mov eax, dword [0x551b20]
mov byte [ebp - 0x2c], 0
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40516f
push 4
lea eax, [ebp - 0x4c]
sub ecx, esi
push eax
lea eax, [ebp - 0x3fc]
push eax
push ecx
push edx
call fcn.0041e130
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40527f
push 0
call fcn.0048cba0
pop ecx
xor ecx, ecx
mov eax, ebx
add eax, 4
setb cl
neg ecx
or ecx, eax
push ecx
push dword [ebp - 0x3fc]
call fcn.00483b6d
pop ecx
pop ecx
mov esi, eax
call fcn.0048cb8d
cmp dword [eax], 0xc
jne 0x405230
call fcn.00435f20
test eax, eax
je 0x405228
call fcn.00435f20
cmp dword [eax], 0
je 0x405228
mov eax, dword [0x4edee0]
test eax, eax
je 0x4051ed
mov esi, dword [eax + 0x190]
jmp 0x4051f3
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x405205
call fcn.00435f20
mov eax, dword [eax]
jmp 0x405207
xor eax, eax
mov ecx, str.Error_allocating_memory__
push ecx
push ecx
push dword [0x4edee0]
push esi
push 0
push 0x20c
push str.D:MyProjectsProPilotTestMain.c
push 3
call eax
add esp, 0x20
mov esi, dword [ebp - 0x3fc]
jmp 0x405236
mov dword [ebp - 0x3fc], esi
push ebx
lea eax, [esi + 4]
push esi
push eax
call fcn.00480c20
mov eax, dword [ebp - 0x3fc]
add esp, 8
mov dword [eax], ebx
push dword [0x551b28]
mov edx, dword [ebp - 0x3fc]
push str._::RRS::_
push str.RdpRegistrationSettings
call fcn.00404015
add esp, 0x10
test eax, eax
je 0x4052bd
mov eax, dword [0x551b28]
xor ebx, ebx
inc ebx
mov dword [eax + 0x18], 0x100000
jmp 0x405282
or ebx, 0xffffffff
inc edi
mov dword [ebp - 0x408], ebx
mov eax, 0x3e8
cmp edi, eax
jl 0x405101
jmp 0x4052a1
or ebx, 0xffffffff
mov dword [ebp - 0x408], ebx
mov ecx, dword [ebp - 0x410]
mov eax, 0x3e8
inc ecx
mov dword [ebp - 0x410], ecx
cmp ecx, eax
jl 0x404f9d
jmp 0x4052f3
cmp dword [ebp - 0x3fc], 0
je 0x4052f3
lea eax, [ebp - 0x3fc]
push eax
call fcn.0041f010
pop ecx
push dword [ebp - 0x3fc]
call fcn.0048690c
and dword [ebp - 0x3fc], 0
pop ecx
jmp 0x4052f3
test esi, esi
je 0x4052f3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404b8e
cmp dword [ebp - 0x3fc], 0
je 0x405321
lea eax, [ebp - 0x3fc]
push eax
call fcn.0041f010
pop ecx
push dword [ebp - 0x3fc]
call fcn.0048690c
and dword [ebp - 0x3fc], 0
pop ecx
cmp dword [ebp - 0x400], 0
je 0x405343
lea eax, [ebp - 0x400]
push eax
call fcn.0041f010
pop ecx
push dword [ebp - 0x400]
call fcn.0048690c
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047f41c
leave
ret