Function at 0x100099f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100383a5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x1004b220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x38], eax
xor edi, edi
push 5
movzx eax, cx
push eax
push 0x10000000
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10009dcb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x10000000
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x10009de9
test eax, eax
je 0x10009de9
mov edx, 0xffff
cmp word [ebx + 2], dx
jne 0x10009daa
cmp word [ebx], 1
jne 0x10009daa
movzx eax, word [ebx + 0x1a]
lea esi, [ebx + 0x1a]
mov ecx, eax
test ax, ax
jne 0x10009aa1
add esi, 2
jmp 0x10009abb
cmp cx, dx
jne 0x10009ab0
add esi, 4
jmp 0x10009abb
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10009ab0
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x10009aca
add esi, 2
jmp 0x10009adf
cmp cx, dx
jne 0x10009ad4
add esi, 4
jmp 0x10009adf
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10009ad4
mov dword [ebp - 4], 0
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x10009ded
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.10009940
test byte [ebx + 0xc], 0x48
mov esi, eax
je 0x10009d8f
mov dword [ebp - 0x34], esi
add esi, 6
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x10009df7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.10009940
mov ecx, eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x24], ecx
add eax, ebx
mov dword [ebp - 0x28], eax
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x10009e01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push esi
call fcn.10006e20
test al, al
jne 0x10009bb9
test esi, esi
jne 0x10009b97
xor ecx, ecx
jmp 0x10009baf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009ba0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.100071a0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x14]
lea eax, [edi - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [eax + 4]
sub eax, dword [esi - 0xc]
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x18], eax
call fcn.1003702d
mov edx, dword [ebp - 0x1c]
add esp, 4
sub edx, ebx
mov dword [ebp - 0x10], eax
cmp edx, dword [ebp - 0x18]
cmovge edx, dword [ebp - 0x18]
test edx, edx
je 0x10009c26
mov ecx, dword [ebp - 0x18]
cmp ecx, edx
jb 0x10009c05
push edx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10009c23
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [edi - 0xc]
sub ecx, ebx
sub edx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x1c]
add edx, ebx
mov dword [ebp - 0x30], ecx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], edx
cmp eax, edx
cmovae eax, edx
test eax, eax
je 0x10009c92
test ecx, ecx
jne 0x10009c60
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x10009c89
cmp edx, eax
jb 0x10009c71
push eax
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10009c8f
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi - 0xc]
mov eax, 0xfffffffe
mov edi, dword [ebp - 0x30]
add ecx, ecx
sub eax, ecx
add edi, 2
add edx, eax
add edi, ecx
cmp dword [ebp - 0x28], edx
mov eax, edx
mov dword [ebp - 0x14], edx
cmovb eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10009d1f
test edi, edi
jne 0x10009ccd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x10009d19
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10009ce5
cmp edx, eax
jb 0x10009ce5
push eax
push ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10009d1f
push edx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x24], 0
jne 0x10009d05
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x10009d19
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x14], eax
jae 0x10009d1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
sub edi, dword [ebp - 0x10]
add edi, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
jne 0x10009d5f
mov dx, word [ebp + 8]
test dx, dx
je 0x10009d4e
mov ecx, edi
sub ecx, ebx
add ecx, dword [ebp - 0x34]
movzx eax, word [ecx]
mov word [ecx], dx
xor ecx, ecx
cmp ax, word [ebp - 0x38]
setne cl
jmp 0x10009d50
xor ecx, ecx
test esi, esi
mov eax, 1
mov ebx, edi
cmovne ecx, eax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x3c]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009d77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
lea edx, [esi - 0x10]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009d8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009daa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push ebx
push 0
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
test edi, edi
je 0x10009dc8
push edi
call fcn.10037028
add esp, 4
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10009dd4
mov dword [ecx], ebx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x10009dcb
push 0x80004005
call fcn.100018f0
push 0x80004005
call fcn.100018f0
push 0x80004005
call fcn.100018f0
int3