Function at 0x10010561
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10010599
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.1001b490
add esp, 0x10
jmp 0x10010746
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x1001064c
mov dword [ebp - 0x40], 0x2469
cmp dword [ebp - 0x40], 0x5e7
jge 0x1001063f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x10007774
call fcn.1005056b
add esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
jmp 0x10010601
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x44]
jge 0x10010630
lea eax, [ebp - 0x48]
push eax
push 0x1000774c
call fcn.1005056b
pop ecx
pop ecx
push dword [ebp - 0x48]
call fcn.1001051a
pop ecx
cmp eax, dword [ebp - 0x4c]
jg 0x1001062e
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x100105fa
push dword [ebp - 0xc]
push 0x10007748
call fcn.10050853
pop ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x10010746
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x18]
imul ecx, dword [edx]
sub eax, ecx
je 0x100106b3
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x100106b3
mov dword [ebp - 0x14], 1
jmp 0x100106b7
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jne 0x100106ca
mov dword [ebp - 0x1c], 1
jmp 0x100106ce
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jne 0x100106e1
mov dword [ebp - 0x20], 1
jmp 0x100106e5
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x20]
imul eax, ecx
cmp eax, 1
je 0x10010703
mov dword [ebp - 0x24], 1
jmp 0x10010707
and dword [ebp - 0x24], 0
imul eax, dword [ebp - 0x24], 0xb94b
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx]
jg 0x1001071e
mov dword [ebp - 0x28], 1
jmp 0x10010722
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jge 0x10010735
mov dword [ebp - 0x2c], 1
jmp 0x10010739
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x7c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret