Function at 0x403ab0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x40c]
sub esp, 0x40c
push 0xffffffffffffffff
push 0x427a70
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x43217c]
xor eax, ebp
mov dword [ebp + 0x408], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x20], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x403d32
cmp esi, edi
je 0x403d32
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403b21
sub eax, edx
sar eax, 1
je 0x403d32
push 0x408
push edi
lea eax, [ebp]
push eax
call fcn.00409180
mov dword [ebp + 4], 1
push 0x5c
push esi
call fcn.00408245
add esp, 0x14
cmp eax, edi
je 0x403b60
add eax, 2
jmp 0x403b62
mov eax, esi
push 0xff
push eax
push 0x100
lea ecx, [ebp + 0x208]
push ecx
call fcn.004084c5
mov edx, dword [ebp + 0x418]
push edx
push str.FILE_d
lea edx, [ebp + 8]
call fcn.00403220
add esp, 0x18
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
jne 0x403bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
push 0x42fd58
lea eax, [ebp - 0x38]
push eax
call fcn.0040a7d8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp], eax
cmp eax, edi
jne 0x403bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x42fd58
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040a7d8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x403c14
mov dword [ebp - 0x30], 0x7a
push 0x42fd58
lea edx, [ebp - 0x30]
push edx
call fcn.0040a7d8
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp]
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403c41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
push 0x42fd58
lea edx, [ebp - 0x34]
push edx
call fcn.0040a7d8
mov eax, dword [ebp - 0x24]
mov dword [ebp], eax
push eax
push edi
push 0x400
lea eax, [ebp + 8]
push eax
push str.FILES
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x403d03
mov edx, dword [ebp]
push edx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp + 8]
push ecx
push str.Add_File_to_resource_success:__Index:_s__File:_s__size:_d_
mov ecx, 0x434070
call fcn.00402cb0
add esp, 0x10
push 0x408
lea edx, [ebp]
push edx
push 0x400
lea eax, [ebp + 8]
push eax
push str.FILEINFO
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x403cdc
mov edx, dword [ebp]
push edx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp + 8]
push ecx
push str.Add_File_info_success:__Index:_s__File:_s__size:_d_
mov ecx, 0x434070
call fcn.00402cb0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
jmp 0x403d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push str.Add_File_List_fail__
mov ecx, 0x434070
call fcn.00402cb0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x403d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
push esi
push str.Add_File_data_fail_____s_
mov ecx, 0x434070
call fcn.00402cb0
add esp, 8
mov dword [ebp - 0x3c], edi
push 0x42fd58
lea edx, [ebp - 0x3c]
push edx
call fcn.0040a7d8
mov dword [ebp - 0x2c], 0x57
push 0x42fd58
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a7d8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
push str.CPackage::AddFileToResource
mov edx, 0x434070
call fcn.00402b70
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x403d8b
ret
mov dword [ebp - 4], 2
test edi, edi
je 0x403da3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebx, 0xffffffff
je 0x403daf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x408]
xor ecx, ebp
call fcn.0040800b
add ebp, 0x40c
mov esp, ebp
pop ebp
ret 8