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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430590
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x43e270]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov dword [ebp - 0x430], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x42c], 0xffffffff
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x434], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x404cd1
cmp esi, edi
je 0x404cd1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404a72
sub eax, edx
sar eax, 1
je 0x404cd1
push 0x408
push edi
lea eax, [ebp - 0x420]
push eax
call fcn.0040d9a0
mov dword [ebp - 0x41c], 1
push 0x5c
push esi
call fcn.0040c87b
add esp, 0x14
cmp eax, edi
je 0x404ab7
add eax, 2
jmp 0x404ab9
mov eax, esi
lea ecx, [ebp - 0x218]
call fcn.004037d0
mov ecx, dword [ebp + 0xc]
push ecx
push str.FILE_d
lea edx, [ebp - 0x418]
call fcn.004037f0
add esp, 8
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 - 0x42c], ebx
cmp ebx, 0xffffffff
jne 0x404b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x448], eax
push 0x43b558
lea edx, [ebp - 0x448]
push edx
call fcn.0040eef8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x404b4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x438], eax
push 0x43b558
lea eax, [ebp - 0x438]
push eax
call fcn.0040eef8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x428], edi
test edi, edi
jne 0x404b7a
mov dword [ebp - 0x440], 0x7a
push 0x43b558
lea ecx, [ebp - 0x440]
push ecx
call fcn.0040eef8
push 0
lea edx, [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x420]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
push 0x43b558
lea ecx, [ebp - 0x444]
push ecx
call fcn.0040eef8
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x420], eax
push eax
push edi
push 0x400
lea edx, [ebp - 0x418]
push edx
push 0x435a68
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x404c99
mov ecx, dword [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x418]
push eax
push str.Add_File_to_resource_success:__Index:_s__File:_s__size:_d_
mov ecx, 0x440628
call fcn.00403b70
add esp, 0x10
push 0x408
lea ecx, [ebp - 0x420]
push ecx
push 0x400
lea edx, [ebp - 0x418]
push edx
push str.FILEINFO
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x404c6f
mov ecx, dword [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x418]
push eax
push str.Add_File_info_success:__Index:_s__File:_s__size:_d_
mov ecx, 0x440628
call fcn.00403b70
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
jmp 0x404d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
push str.Add_File_List_fail__
mov ecx, 0x440628
call fcn.00403b70
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x404d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x424], edi
push esi
push str.Add_File_data_fail_____s_
mov ecx, 0x440628
call fcn.00403b70
add esp, 8
mov dword [ebp - 0x44c], edi
push 0x43b558
lea ecx, [ebp - 0x44c]
push ecx
call fcn.0040eef8
mov dword [ebp - 0x43c], 0x57
push 0x43b558
lea edx, [ebp - 0x43c]
push edx
call fcn.0040eef8
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x424], ecx
push str.CPackage::AddFileToResource
mov edx, 0x440628
call fcn.00403a30
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x404d36
ret
mov dword [ebp - 4], 2
test edi, edi
je 0x404d54
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebx, 0xffffffff
je 0x404d60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c641
mov esp, ebp
pop ebp
ret 8