Function at 0x404b00
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
push edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x4c], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x74], 4
mov byte [ebp - 0x73], 1
mov byte [ebp - 0x72], 7
mov byte [ebp - 0x71], 7
mov byte [ebp - 0x70], 9
mov byte [ebp - 0x6f], 8
mov byte [ebp - 0x6e], 1
mov byte [ebp - 0x6d], 7
mov byte [ebp - 0x6c], 4
mov byte [ebp - 0x6b], 1
mov byte [ebp - 0x6a], 4
mov byte [ebp - 0x69], 8
mov byte [ebp - 0x68], 4
mov byte [ebp - 0x67], 4
mov byte [ebp - 0x66], 5
mov byte [ebp - 0x65], 8
mov byte [ebp - 0x64], 1
mov byte [ebp - 0x63], 4
mov byte [ebp - 0x62], 5
mov byte [ebp - 0x61], 3
mov dword [ebp - 0x10], 0x14
mov eax, dword [ebp - 0x10]
add eax, 0xa
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x50], 0x100000
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x2c], 0x100000
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0
call fcn.00404390
add esp, 4
push eax
call dword [0x417138]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x404bf7
jmp 0x40502e
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x38], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [0x417140]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404c2d
jmp 0x40502e
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
push 0
push 1
call fcn.004065e0
add esp, 8
test eax, eax
jne 0x404e0e
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x38]
jae 0x404e0e
cmp dword [ebp - 0x48], 0
jne 0x404e0e
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x60]
jae 0x404c7e
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
jmp 0x404c84
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0
push 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x404cb3
jmp 0x40502e
mov dword [ebp - 0x18], 0
jmp 0x404cc5
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x54]
sub ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], ecx
ja 0x404df6
mov ecx, dword [ebp - 0x10]
lea edi, [ebp - 0x74]
mov esi, dword [ebp - 0x20]
add esi, dword [ebp - 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x404df1
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + eax]
mov dword [0x417130], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + eax + 1]
mov dword [0x41712c], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 6]
mov dword [ebp - 0x30], edx
cmp dword [0x417130], 0
je 0x404d63
mov eax, dword [ebp - 0x30]
mov dword [0x417120], eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x417124], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 0xa]
push edx
mov eax, dword [0x417124]
push eax
call fcn.004070f0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
lea eax, [ecx + edx + 0xa]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x404dbb
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x417150], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
lea ecx, [edx + eax + 0xa]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 4]
push eax
mov ecx, dword [0x417150]
push ecx
call fcn.004070f0
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
lea ecx, [edx + eax + 0xa]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx + 4]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
lea eax, [ecx + edx + 4]
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx + 4]
mov dword [ebp - 0x48], edx
jmp 0x404df6
jmp 0x404cbc
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x404c3b
cmp dword [ebp - 0x48], 0
jne 0x404e1e
jmp 0x40502e
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], edx
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push 0
call fcn.004042b0
add esp, 4
push eax
call dword [0x417138]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x404e5d
jmp 0x40502e
push 0
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x44]
push ecx
call dword [0x417140]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x404e86
jmp 0x40502e
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x48]
xor edx, edx
div dword [ebp - 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x48]
xor edx, edx
div dword [ebp - 0x2c]
imul eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x2c]
jbe 0x404ec1
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
push 0
push 1
call fcn.004065e0
add esp, 8
test eax, eax
jne 0x40501f
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x5c]
jae 0x40501f
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x2c]
jae 0x404ef7
mov ecx, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x58]
mov dword [ebp - 0x7c], ecx
jmp 0x404efd
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x58]
push edx
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x404f2f
jmp 0x40502e
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
push 0
push 2
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404f58
jmp 0x40502e
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004070f0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0
fild qword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], 0
fild qword [ebp - 0x8c]
fdivp st(1)
fmul qword [0x413c98]
fnstcw word [ebp - 0x8e]
movzx eax, word [ebp - 0x8e]
or eax, 0xc00
mov dword [ebp - 0x94], eax
fldcw word [ebp - 0x94]
fistp qword [ebp - 0x9c]
fldcw word [ebp - 0x8e]
mov edx, dword [ebp - 0x9c]
push edx
push 2
call fcn.00406600
add esp, 8
jmp 0x404ec1
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jne 0x40502e
mov dword [ebp - 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 8], 0
je 0x405047
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x4c], 0
je 0x405057
mov edx, dword [ebp - 0x4c]
push edx
call dword [0x41713c]
cmp dword [ebp - 0x44], 0xffffffff
je 0x405067
mov eax, dword [ebp - 0x44]
push eax
call dword [0x41713c]
cmp dword [ebp - 0x20], 0
je 0x405077
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x14], 0
je 0x405087
mov edx, dword [ebp - 0x14]
push edx
call dword [0x41713c]
cmp dword [ebp - 0x28], 0xffffffff
je 0x405097
mov eax, dword [ebp - 0x28]
push eax
call dword [0x41713c]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret