Function at 0x450ee0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f6a3
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x450f17
cmp dword [ebp + 0xc], 0
jne 0x450f1e
xor eax, eax
jmp 0x4514a3
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
cmp dword [ebp + 0x14], 0
jne 0x4512a1
call fcn.004377b0
push eax
lea ecx, [ebp - 0xac]
call fcn.00433140
mov dword [ebp - 4], 0
call fcn.004377d0
mov ecx, eax
call fcn.00434250
movzx eax, al
test eax, eax
je 0x4510a9
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xac]
call fcn.004337a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.00406cd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x450fc4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
push 0
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x450ff9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
mov dword [ebp - 0x2e4], 0
push 0x58c7d0
mov eax, dword [ebp - 0x2c8]
push eax
call fcn.004d7a0d
add esp, 8
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2cc], ecx
push 0
lea edx, [ebp - 0x2e4]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2e4]
cmp ecx, dword [ebp - 0x2c8]
je 0x4510a4
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.004d72c1
add esp, 4
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
jmp 0x45128a
call fcn.004377d0
push eax
lea ecx, [ebp - 0xac]
call fcn.00433770
mov dword [ebp - 0x318], 0
call fcn.00437a30
movzx ecx, al
test ecx, ecx
je 0x45123e
call fcn.004377e0
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x4510ff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.00419d10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x300]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
call fcn.0045d800
add esp, 0x10
test eax, eax
jne 0x451140
mov dword [ebp - 0x2e8], 1
jmp 0x45114a
mov dword [ebp - 0x2e8], 0
mov cl, byte [ebp - 0x2e8]
mov byte [ebp - 0x2cd], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00428550
movzx edx, byte [ebp - 0x2cd]
test edx, edx
je 0x451184
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x4511b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
push 0x58c7d0
mov ecx, dword [ebp - 0x2c8]
push ecx
call fcn.004d7a0d
add esp, 8
mov dword [ebp - 0x2fc], eax
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2cc], edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x300]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
call fcn.0045d610
add esp, 0x10
test eax, eax
jne 0x45123c
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x304], ecx
push 1
mov edx, dword [ebp - 0x304]
push edx
call fcn.004d72b3
add esp, 8
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
jmp 0x45128a
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0xac]
call fcn.00406cd0
push eax
call fcn.0046f470
add esp, 0x10
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jge 0x45128a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00433420
jmp 0x451378
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00437780
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
jne 0x4512c9
jmp 0x451380
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.00437780
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x4512fd
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x451380
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.00437780
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x451321
jmp 0x451380
push 0x58c7d0
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.004d7a0d
add esp, 8
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [ebp - 0x2cc]
push eax
call fcn.00510d00
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edx, edx
jne 0x450f32
cmp dword [ebp - 0x2cc], 0
jne 0x45147b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0xffffffff
jne 0x4513bd
jmp 0x45147b
push 0
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x4513e0
jmp 0x45147b
mov dword [ebp - 0x2f0], 0
push 0x58c7d0
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.004d7a0d
add esp, 8
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2cc], eax
push 0
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f0]
cmp eax, dword [ebp - 0x2c8]
je 0x451474
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.004d72c1
add esp, 4
mov dword [ebp - 0x2cc], 0
jmp 0x45147b
cmp dword [ebp - 0x2cc], 0
jne 0x451488
xor eax, eax
jmp 0x4514a3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2cc]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c8]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret