Function at 0x406bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
lea edi, [ebp - 0x7c]
mov ecx, 0x1f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x406c08
movsx eax, word [0x42ead4]
add eax, 1
push eax
push str.c:my_programsccommonqresource.cpp
push str.hEFSFile___INVALID_HANDLE_VALUE
call fcn.00401005
cmp dword [ebp + 0xc], 0
jne 0x406c28
movsx eax, word [0x42ead4]
add eax, 2
push eax
push str.c:my_programsccommonqresource.cpp
push str.dwHeaderOffset
call fcn.00401005
cmp dword [ebp + 0x10], 0
jne 0x406c48
movsx eax, word [0x42ead4]
add eax, 3
push eax
push str.c:my_programsccommonqresource.cpp
push str.pEFSFile
call fcn.00401005
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov esi, esp
push 0
lea eax, [ebp - 0x24]
push eax
push 0x20
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00409560
test eax, eax
je 0x406dfe
cmp dword [ebp - 0x24], 0x20
jne 0x406dfe
mov eax, dword [ebp - 0x10]
add eax, 0x20
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00409b50
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x406dfe
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00409500
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x18], 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0x10], 0
jne 0x406d21
mov eax, 1
jmp 0x406e00
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x18
mov dword [ebp - 0x34], eax
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov esi, esp
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00409560
test eax, eax
je 0x406df2
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x34]
jne 0x406df2
mov dword [ebp - 0x38], 0
jmp 0x406d8b
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0x10]
jae 0x406deb
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x30]
add eax, dword [edx + ecx + 0x10]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], eax
jbe 0x406dc3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x7c], eax
jmp 0x406de0
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + ecx + 0xc]
mov eax, dword [ebp - 0x30]
add ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x7c]
mov dword [ecx + 0x18], edx
jmp 0x406d82
mov eax, 1
jmp 0x406e00
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040a5d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x7c
cmp ebp, esp
call fcn.00409560
mov esp, ebp
pop ebp
ret