Function at 0x10099b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe2bb
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x2e0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1014ad7c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10159314]
cmp eax, dword [ecx + 4]
jle 0x10099bfa
push 0x10159314
call fcn.100d4fed
add esp, 4
cmp dword [0x10159314], 0xffffffff
jne 0x10099bfa
push 0x10159314
mov dword [0x10159318], 0
call fcn.100d4fa3
add esp, 4
mov byte [ebp - 0x2e1], 0
lea eax, [ebp - 0x2ec]
mov dword [ebp - 4], 0
push eax
call fcn.100d3b01
add esp, 4
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x2e1]
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2f8]
push eax
push 0x1009b750
push 0x10159318
call fcn.100d3ea8
add esp, 0xc
test eax, eax
je 0x10099dbc
lea eax, [ebp - 0x2ec]
mov dword [ebp - 4], 2
push eax
call fcn.100d3b10
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x10159118
push eax
call fcn.100dc721
movzx ebx, byte [ebp + 8]
add esp, 8
test eax, eax
mov ecx, 1
cmove ebx, ecx
call fcn.100162e0
call fcn.10098f90
mov esi, dword [0x1014be3c]
push 0x10
push 1
push esi
mov byte [0x10158c56], 0
mov byte [0x10158c57], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10099d3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10099d3f
movzx ecx, word [eax + 0x38]
movzx esi, cl
movzx ecx, word [eax + 0x3a]
movzx eax, word [eax + 0x3e]
shl ecx, 8
or esi, ecx
shl esi, 0x10
or esi, eax
je 0x10099d3f
mov edx, 0xbbb
lea ecx, [ebp - 0x2e8]
call fcn.100aedf0
mov ecx, dword [eax]
movzx eax, si
push eax
mov eax, esi
shr esi, 0x18
shr eax, 0x10
movzx eax, al
push eax
push esi
push ecx
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.100a4830
mov edx, dword [ebp - 0x2e8]
add esp, 0x18
add edx, 0xfffffff0
mov dword [ebp - 4], 5
jmp 0x10099d72
mov edx, 0xbba
lea ecx, [ebp - 0x2f0]
call fcn.100aedf0
push dword [eax]
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.100a4830
mov edx, dword [ebp - 0x2f0]
add esp, 0xc
add edx, 0xfffffff0
mov dword [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10099d87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0xc]
mov dl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.100aa3e0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2ec]
mov byte [ebp - 4], 3
push eax
call fcn.100d3b31
add esp, 4
mov byte [ebp - 4], 1
test al, al
jne 0x10099ddc
call fcn.100d3f31
sub esp, 8
lea eax, [ebp - 0x2ec]
mov ecx, esp
push eax
call fcn.10037f40
call fcn.10037fa0
int3