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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10159bc3
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x101a4494]
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 0x10073837
cmp dword [ebp + 0xc], 0
jne 0x1007383e
xor eax, eax
jmp 0x10073dc3
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
cmp dword [ebp + 0x14], 0
jne 0x10073bc1
call fcn.100585f0
push eax
lea ecx, [ebp - 0xac]
call fcn.10054070
mov dword [ebp - 4], 0
call fcn.10058610
mov ecx, eax
call fcn.10055140
movzx eax, al
test eax, eax
je 0x100739c9
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xac]
call fcn.10054650
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.10054550
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x100738e4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
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 0x10073919
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
mov dword [ebp - 0x2e4], 0
push 0x10178e08
mov eax, dword [ebp - 0x2c8]
push eax
call fcn.100f5ac5
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 0x100739c4
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.100f4f26
add esp, 4
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
jmp 0x10073baa
call fcn.10058610
push eax
lea ecx, [ebp - 0xac]
call fcn.10054620
mov dword [ebp - 0x318], 0
call fcn.10058870
movzx ecx, al
test ecx, ecx
je 0x10073b5e
call fcn.10058620
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x10073a1f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x28]
call fcn.10014d60
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.1007fbd0
add esp, 0x10
test eax, eax
jne 0x10073a60
mov dword [ebp - 0x2e8], 1
jmp 0x10073a6a
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.100098e0
movzx edx, byte [ebp - 0x2cd]
test edx, edx
je 0x10073aa4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x10073ad0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
push 0x10178e08
mov ecx, dword [ebp - 0x2c8]
push ecx
call fcn.100f5ac5
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.1007f9e0
add esp, 0x10
test eax, eax
jne 0x10073b5c
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x304], ecx
push 1
mov edx, dword [ebp - 0x304]
push edx
call fcn.100f4a6f
add esp, 8
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
jmp 0x10073baa
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.10054550
push eax
call fcn.1008c6b0
add esp, 0x10
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jge 0x10073baa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10054300
jmp 0x10073c98
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.100585c0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
jne 0x10073be9
jmp 0x10073ca0
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.100585c0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x10073c1d
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10073ca0
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.100585c0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x10073c41
jmp 0x10073ca0
push 0x10178e08
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.100f5ac5
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.1012db10
add esp, 0xc
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edx, edx
jne 0x10073852
cmp dword [ebp - 0x2cc], 0
jne 0x10073d9b
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 0x10073cdd
jmp 0x10073d9b
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 0x10073d00
jmp 0x10073d9b
mov dword [ebp - 0x2f0], 0
push 0x10178e08
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.100f5ac5
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 0x10073d94
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.100f4f26
add esp, 4
mov dword [ebp - 0x2cc], 0
jmp 0x10073d9b
cmp dword [ebp - 0x2cc], 0
jne 0x10073da8
xor eax, eax
jmp 0x10073dc3
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.100f4dc3
mov esp, ebp
pop ebp
ret