Function at 0x100072d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1001c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [0x10121a5c]
mov esi, ecx
xor cl, cl
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x25], cl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
cmp edi, dword [0x10121a60]
je 0x100074a0
lea edx, [ebp - 0x24]
mov eax, 4
sub eax, edx
mov dword [ebp - 0x48], eax
mov eax, 4
lea edx, [ebp - 0x24]
sub eax, edx
mov dword [ebp - 0x40], eax
lea ecx, [ecx]
cmp byte [edi], 0
jne 0x10007471
cmp byte [0x1012b9c8], 0
jne 0x100073f8
test cl, cl
jne 0x1000736c
lea eax, [ebp - 0x38]
push eax
push esi
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x34]
lea ebx, [ebp - 0x2c]
call fcn.10007500
test al, al
je 0x100074a0
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov ecx, esi
sub ecx, eax
push ecx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x10007466
mov edx, dword [eax + 0x14]
sub edx, dword [eax + 0xc]
push 0
sub edx, dword [ebx + 0x34]
push 0
add edx, esi
mov esi, dword [ebp - 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10007466
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x20
lea ecx, [ebp - 0x24]
push ecx
push esi
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007466
mov edx, dword [ebp - 0x48]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
jmp 0x100073e0
cmp ecx, 4
jb 0x100074b5
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10007466
sub ecx, 4
add eax, 4
jmp 0x100073e0
test cl, cl
jne 0x1000741f
mov eax, dword [0x1012b9cc]
push str.GetProcInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call eax
add esp, 4
test al, al
je 0x100074a0
mov byte [ebp - 0x25], 1
mov ecx, dword [0x1012b9cc]
push str.FindEntryPointInfo
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x24]
push edx
push ecx
push esi
call eax
add esp, 0xc
test al, al
je 0x1000746e
mov edx, dword [ebp - 0x40]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x100074b5
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x1000746b
sub ecx, 4
add eax, 4
jmp 0x10007452
mov esi, dword [ebp - 0x44]
jmp 0x1000746e
mov ebx, dword [ebp - 0x38]
mov cl, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x10121a60]
jne 0x10007330
test cl, cl
je 0x100074a0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100143c4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x30]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x3c]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.100143c4
mov esp, ebp
pop ebp
ret 4