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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101976d7
mov eax, dword fs:[0]
push eax
sub esp, 0x788
mov eax, dword [0x101e40b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x4f8]
call fcn.100f4fe0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.100fd2e0
lea ecx, [ebp - 0x3f0]
push ecx
lea ecx, [ebp - 0x118]
call fcn.100ee6e0
mov byte [ebp - 4], 1
mov dword [ebp - 0x72c], 0
mov dword [ebp - 0x730], 0
call fcn.100f7f70
push eax
lea ecx, [ebp - 0x94]
call fcn.100ee6e0
mov byte [ebp - 4], 2
call fcn.100f7f80
mov ecx, eax
call fcn.100ef7c0
movzx edx, al
test edx, edx
je 0x10121b89
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x94]
call fcn.100eec60
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.100eeb50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp dword [ebp - 0x73c], 0xffffffff
jne 0x10121aaf
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
jmp 0x10121e22
push 0
mov ecx, dword [ebp - 0x73c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x730], 0
jne 0x10121ae1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
jmp 0x10121e22
mov dword [ebp - 0x74c], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.10177fb4
add esp, 4
mov dword [ebp - 0x78c], eax
mov eax, dword [ebp - 0x78c]
mov dword [ebp - 0x72c], eax
push 0
lea ecx, [ebp - 0x74c]
push ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x73c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x73c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74c]
cmp eax, dword [ebp - 0x730]
je 0x10121b84
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x788], ecx
mov edx, dword [ebp - 0x788]
push edx
call fcn.10178437
add esp, 4
mov dword [ebp - 0x72c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
jmp 0x10121e22
jmp 0x10121e0b
call fcn.100f7f80
push eax
lea ecx, [ebp - 0x94]
call fcn.100eec60
mov dword [ebp - 0x734], 0
call fcn.100f8370
movzx eax, al
test eax, eax
je 0x10121bc0
call fcn.100f7f90
mov dword [ebp - 0x734], eax
jmp 0x10121c45
call fcn.100f7fa0
push eax
lea ecx, [ebp - 0x220]
call fcn.100ee6e0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x220]
call fcn.100eeb50
push eax
call fcn.10101380
add esp, 8
mov dword [ebp - 0x748], eax
mov ecx, dword [ebp - 0x748]
push ecx
lea ecx, [ebp - 0x94]
call fcn.100eeb50
push eax
call fcn.10138c50
add esp, 8
mov dword [ebp - 0x734], eax
cmp dword [ebp - 0x748], 0
je 0x10121c36
mov edx, dword [ebp - 0x748]
mov dword [ebp - 0x790], edx
mov eax, dword [ebp - 0x790]
push eax
call fcn.10178437
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.100ee8e0
cmp dword [ebp - 0x734], 0
jne 0x10121c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
jmp 0x10121e22
mov dword [ebp - 0x750], 0
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.100ee6e0
mov byte [ebp - 4], 4
push 0x101b58f4
push 0x101acba8
lea ecx, [ebp - 0x19c]
call fcn.100efbe0
lea edx, [ebp - 0x728]
push edx
lea eax, [ebp - 0x750]
push eax
push 1
lea ecx, [ebp - 0x19c]
call fcn.100eeb50
push eax
mov ecx, dword [ebp - 0x734]
push ecx
call fcn.10137f60
add esp, 0x14
test eax, eax
je 0x10121ce9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.100ee8e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
jmp 0x10121e22
mov edx, dword [ebp - 0x4fc]
mov dword [ebp - 0x730], edx
cmp dword [ebp - 0x730], 0
jne 0x10121d21
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.100ee8e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
jmp 0x10121e22
mov eax, dword [ebp - 0x730]
push eax
call fcn.10177fb4
add esp, 4
mov dword [ebp - 0x764], eax
mov ecx, dword [ebp - 0x764]
mov dword [ebp - 0x72c], ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x750]
push ecx
mov edx, dword [ebp - 0x734]
push edx
call fcn.101394c0
add esp, 0x10
mov dword [ebp - 0x754], eax
cmp dword [ebp - 0x754], 0
je 0x10121de1
cmp dword [ebp - 0x754], 0x600
je 0x10121de1
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.10178437
add esp, 4
mov dword [ebp - 0x72c], 0
call fcn.100f8370
movzx edx, al
test edx, edx
jne 0x10121dc1
mov eax, dword [ebp - 0x734]
push eax
call fcn.10137ba0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.100ee8e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
jmp 0x10121e22
call fcn.100f8370
movzx ecx, al
test ecx, ecx
jne 0x10121dfc
mov edx, dword [ebp - 0x734]
push edx
call fcn.10137ba0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.100ee8e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.100ee8e0
xor eax, eax
jne 0x10121a2a
cmp dword [ebp - 0x72c], 0
jne 0x10121f20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x118]
call fcn.100eeb50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0xffffffff
jne 0x10121e67
jmp 0x10121f20
push 0
mov ecx, dword [ebp - 0x740]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x730], 0
jne 0x10121e8a
jmp 0x10121f20
mov dword [ebp - 0x760], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.10177fb4
add esp, 4
mov dword [ebp - 0x76c], eax
mov eax, dword [ebp - 0x76c]
mov dword [ebp - 0x72c], eax
push 0
lea ecx, [ebp - 0x760]
push ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x740]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x740]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x760]
cmp eax, dword [ebp - 0x730]
je 0x10121f19
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x770], ecx
mov edx, dword [ebp - 0x770]
push edx
call fcn.10178437
add esp, 4
mov dword [ebp - 0x72c], 0
jmp 0x10121f20
cmp dword [ebp - 0x72c], 0
jne 0x1012207c
lea ecx, [ebp - 0x118]
call fcn.100ef830
movzx eax, al
test eax, eax
je 0x10122075
call fcn.100f7f50
mov dword [ebp - 0x744], eax
cmp dword [ebp - 0x744], 0
jne 0x10121f5c
jmp 0x1012207c
mov dword [ebp - 0x774], 0
push 0xa
lea ecx, [ebp - 0x774]
push ecx
lea ecx, [ebp - 0x118]
call fcn.100eeb50
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
add esp, 0xc
mov dword [ebp - 0x778], eax
lea ecx, [ebp - 0x36c]
call fcn.100eeb50
push eax
mov edx, dword [ebp - 0x778]
push edx
lea ecx, [ebp - 0x794]
call fcn.1000bc60
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x744]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x738], eax
cmp dword [ebp - 0x738], 0
jne 0x10121fcc
jmp 0x1012207c
mov edx, dword [ebp - 0x738]
push edx
mov eax, dword [ebp - 0x744]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x75c], eax
cmp dword [ebp - 0x75c], 0
jne 0x10121ffe
mov ecx, dword [ebp - 0x738]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1012207c
mov edx, dword [ebp - 0x738]
push edx
mov eax, dword [ebp - 0x744]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x730], 0
jne 0x10122023
jmp 0x1012207c
mov ecx, dword [ebp - 0x730]
push ecx
call fcn.10177fb4
add esp, 4
mov dword [ebp - 0x77c], eax
mov edx, dword [ebp - 0x77c]
mov dword [ebp - 0x72c], edx
mov eax, dword [ebp - 0x730]
push eax
mov ecx, dword [ebp - 0x75c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x72c]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x738]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1012207c
mov dword [ebp - 0x758], 0
cmp dword [ebp - 0x72c], 0
je 0x101220d0
mov ecx, dword [ebp - 0x730]
push ecx
mov edx, dword [ebp - 0x72c]
push edx
call fcn.10121910
add esp, 8
mov dword [ebp - 0x758], eax
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x780], eax
mov ecx, dword [ebp - 0x780]
push ecx
call fcn.10178437
add esp, 4
mov dword [ebp - 0x72c], 0
mov edx, dword [ebp - 0x758]
mov dword [ebp - 0x784], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.100ee8e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.100e6930
mov eax, dword [ebp - 0x784]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10177d47
mov esp, ebp
pop ebp
ret