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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ba43
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x546330]
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 0x43dcd7
cmp dword [ebp + 0xc], 0
jne 0x43dcde
xor eax, eax
jmp 0x43e263
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
cmp dword [ebp + 0x14], 0
jne 0x43e061
call fcn.00421aa0
push eax
lea ecx, [ebp - 0xac]
call fcn.00429150
mov dword [ebp - 4], 0
call fcn.00421ac0
mov ecx, eax
call fcn.0042a1f0
movzx eax, al
test eax, eax
je 0x43de69
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00429720
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.00421a30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x43dd84
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
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 0x43ddb9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
mov dword [ebp - 0x2e4], 0
push 0x5239b8
mov eax, dword [ebp - 0x2c8]
push eax
call fcn.004be1d9
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 0x43de64
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.004bda26
add esp, 4
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
jmp 0x43e04a
call fcn.00421ac0
push eax
lea ecx, [ebp - 0xac]
call fcn.004296f0
mov dword [ebp - 0x318], 0
call fcn.00421d20
movzx ecx, al
test ecx, ecx
je 0x43dffe
call fcn.00421ad0
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x43debf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.00405160
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.0044df20
add esp, 0x10
test eax, eax
jne 0x43df00
mov dword [ebp - 0x2e8], 1
jmp 0x43df0a
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.004050b0
movzx edx, byte [ebp - 0x2cd]
test edx, edx
je 0x43df44
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x43df70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
push 0x5239b8
mov ecx, dword [ebp - 0x2c8]
push ecx
call fcn.004be1d9
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.0044dd30
add esp, 0x10
test eax, eax
jne 0x43dffc
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x304], ecx
push 1
mov edx, dword [ebp - 0x304]
push edx
call fcn.004bd6ef
add esp, 8
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
jmp 0x43e04a
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.00421a30
push eax
call fcn.0045e490
add esp, 0x10
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jge 0x43e04a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004293e0
jmp 0x43e138
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00421a70
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
jne 0x43e089
jmp 0x43e140
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.00421a70
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x43e0bd
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43e140
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.00421a70
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x43e0e1
jmp 0x43e140
push 0x5239b8
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.004be1d9
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.004e2000
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edx, edx
jne 0x43dcf2
cmp dword [ebp - 0x2cc], 0
jne 0x43e23b
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 0x43e17d
jmp 0x43e23b
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 0x43e1a0
jmp 0x43e23b
mov dword [ebp - 0x2f0], 0
push 0x5239b8
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.004be1d9
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 0x43e234
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.004bda26
add esp, 4
mov dword [ebp - 0x2cc], 0
jmp 0x43e23b
cmp dword [ebp - 0x2cc], 0
jne 0x43e248
xor eax, eax
jmp 0x43e263
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.004bd6ac
mov esp, ebp
pop ebp
ret