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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x449e30]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push 0
push 0
push 3
push 0
push 1
mov ebx, ecx
push 0x80000000
lea eax, [ebx + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40cae4
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041fd8a
add esp, 0x20c
ret
push esi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 2
push 0
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x40cb2e
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041fd8a
add esp, 0x20c
ret
push edi
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x40cb47
push esi
jmp 0x40cb80
mov eax, dword [esp + 0x10]
xor esi, esi
add eax, 0xfffffffc
mov dword [esp + 0x10], eax
je 0x40cb74
push 4
lea ecx, [esi + edi]
push str._FID
push ecx
call fcn.0042139e
add esp, 0xc
test eax, eax
je 0x40cba6
inc esi
cmp esi, dword [esp + 0x10]
jb 0x40cb56
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x14]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041fd8a
add esp, 0x20c
ret
mov al, byte [ebx + 0x4d9]
sub al, 8
cmp al, 1
ja 0x40cc89
mov al, byte [esi + edi + 4]
cmp al, 3
jg 0x40ccaa
push 0x100
lea edx, [esi + edi + 0xa]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00421374
push 3
lea ecx, [esp + 0x28]
push ecx
lea edx, [ebx + 0x84]
push edx
call fcn.00421189
push 0x100
lea eax, [esi + edi + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00421374
push 3
lea edx, [esp + 0x40]
push edx
lea eax, [ebx + 4]
push eax
call fcn.00421189
xor ecx, ecx
mov word [ebx + 0x8a], cx
movzx dx, byte [esi + edi + 0x34]
movzx eax, byte [esi + edi + 0x35]
movzx cx, byte [esi + edi + 0x36]
sub dx, 0x30
imul dx, dx, 0xa
add dx, ax
movzx eax, byte [esi + edi + 0x37]
sub dx, 0x30
imul dx, dx, 0xa
add dx, cx
sub dx, 0x30
imul dx, dx, 0xa
add dx, ax
sub dx, 0x30
mov word [ebx + 0xc4], dx
movzx eax, byte [esi + edi + 0x38]
sub al, 0x30
mov cl, 0xa
imul cl
add al, byte [esi + edi + 0x39]
mov dl, cl
sub al, 0x30
mov byte [ebx + 0xc6], al
movzx eax, byte [esi + edi + 0x3a]
sub al, 0x30
imul dl
add esp, 0x30
add al, byte [esi + edi + 0x3b]
sub al, 0x30
mov byte [ebx + 0xc7], al
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
mov eax, 1
jmp 0x40cb8d
cmp al, 4
jne 0x40cd6d
lea esi, [esi + edi - 0x14]
push 0x100
lea eax, [esi + 0x1e]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00421374
push 3
lea edx, [esp + 0x28]
push edx
lea eax, [ebx + 0x84]
push eax
call fcn.00421189
push 0x100
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.00421374
push 3
lea edx, [esp + 0x40]
push edx
lea eax, [ebx + 4]
push eax
call fcn.00421189
xor ecx, ecx
mov word [ebx + 0x8a], cx
movzx dx, byte [esi + 8]
movzx eax, byte [esi + 9]
movzx cx, byte [esi + 0xa]
sub dx, 0x30
imul dx, dx, 0xa
add dx, ax
movzx eax, byte [esi + 0xb]
sub dx, 0x30
imul dx, dx, 0xa
add dx, cx
sub dx, 0x30
imul dx, dx, 0xa
add dx, ax
sub dx, 0x30
mov word [ebx + 0xc4], dx
movzx eax, byte [esi + 0xc]
sub al, 0x30
mov cl, 0xa
imul cl
add al, byte [esi + 0xd]
mov dl, cl
sub al, 0x30
mov byte [ebx + 0xc6], al
movzx eax, byte [esi + 0xe]
sub al, 0x30
imul dl
add esp, 0x30
add al, byte [esi + 0xf]
jmp 0x40cc81
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
push eax
jmp 0x40cb80