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

Disassembly:
push 0x34
mov eax, 0x10c0477
call fcn.01075953
mov esi, ecx
call fcn.0109c9cd
test al, al
jne 0x109cff3
mov eax, dword [ebp + 8]
push dword [eax + 8]
push 0x10348f8
push 1
call fcn.0109679c
add esp, 0xc
xor eax, eax
jmp 0x109d21c
cmp byte [esi + 0x1408], 0
je 0x109d01e
push dword [ebp + 8]
call fcn.0109c5a2
xor edi, edi
cmp eax, edi
je 0x109d020
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x109d016
mov edx, dword [eax + 0x10]
mov dword [ecx], edx
mov eax, dword [eax + 0xc]
jmp 0x109d21c
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x1414], edi
jbe 0x109d139
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.010942ac
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], edi
jmp 0x109d050
cmp word [eax], 0x2f
jne 0x109d04e
push 0x5c
pop ecx
mov word [eax], cx
inc eax
inc eax
cmp word [eax], di
jne 0x109d042
mov eax, dword [esi + 0x1414]
cmp eax, edi
jbe 0x109d0d5
mov eax, dword [esi + 0x1420]
mov ebx, dword [eax + edi*4]
push 0x10348e8
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x109d089
inc edi
cmp edi, dword [esi + 0x1414]
jb 0x109d05f
jmp 0x109d0ce
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x109d0ce
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x109d0a0
mov dword [eax], edi
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x109d0ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x109d0ce
cmp edi, 1
jl 0x109d0ce
test edi, edi
jle 0x109d0ce
mov cl, byte [eax]
inc eax
dec edi
mov byte [ebp - 0xd], cl
jne 0x109d0c5
xor edi, edi
cmp dword [ebp - 0x1c], edi
jne 0x109d131
push 0x10348dc
lea ecx, [ebp - 0x34]
call fcn.01094890
xor ebx, ebx
cmp dword [esi + 0x1414], edi
jbe 0x109d131
mov eax, dword [esi + 0x1420]
mov eax, dword [eax + ebx*4]
push 0x10348e8
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
jne 0x109d113
inc ebx
cmp ebx, dword [esi + 0x1414]
jb 0x109d0ec
jmp 0x109d131
push dword [ebp - 0x2c]
call fcn.0109cc80
cmp eax, edi
je 0x109d131
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x109d131
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x34]
jmp 0x109d1ef
lea eax, [esi + 0x1424]
push eax
lea ecx, [ebp - 0x40]
call fcn.010942ac
push dword [ebp + 8]
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.01094590
push edi
push edi
push 3
push edi
push ebx
push 0x80000000
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x109d1ec
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x109d1e3
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x109d18b
mov dword [ecx], eax
push eax
lea ecx, [ebp - 0x28]
call fcn.0109c138
mov ebx, dword [ebp - 0x24]
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x28]
mov byte [ebp - 4], 2
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x109d1d7
cmp dword [ebp - 0x20], ebx
jne 0x109d1d7
push ebx
push dword [ebp - 0x28]
lea ecx, [esi + 0x1430]
call fcn.0109c5f3
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0109c15b
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.0109449c
cmp dword [ebp - 0x14], edi
jne 0x109d219
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
push 0x1034888
push 1
call fcn.0109679c
add esp, 0x10
mov eax, dword [ebp - 0x14]
call fcn.01075a01
ret 8