Function at 0x1002afe2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007154c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002b271
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1002b16c
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x4c], 0x20aa
mov dword [ebp - 0x68], 0x100082d8
cmp dword [ebp - 0x4c], 0x21f8
jle 0x1002b114
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp - 0x20], 0
jmp 0x1002b06f
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x6b6e
jge 0x1002b114
and dword [ebp - 0x18], 0
jmp 0x1002b089
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x51a8
jge 0x1002b10f
and dword [ebp - 0x1c], 0
jmp 0x1002b09f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x6c6b
jge 0x1002b10a
and dword [ebp - 0x24], 0
jmp 0x1002b0b5
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7e41
jge 0x1002b108
mov eax, dword [ebp - 0x20]
cdq
idiv dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
sar eax, cl
xor eax, edx
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.1000a633
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.10022371
push eax
call fcn.1005b12f
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.10022332
jmp 0x1002b0ae
jmp 0x1002b098
jmp 0x1002b082
jmp 0x1002b068
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0xc], 0
and dword [ebp - 4], 0
cmp dword [ebp - 0x4c], 0x1d8e
jge 0x1002b141
push dword [ebp - 0x68]
call fcn.1005b12f
pop ecx
jmp 0x1002b15d
or dword [ebp - 4], 0xffffffff
jmp 0x1002b167
jmp 0x1002b26f
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1002b195
mov dword [ebp - 0x30], 1
jmp 0x1002b199
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
je 0x1002b1ac
mov dword [ebp - 0x40], 1
jmp 0x1002b1b0
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0x93d0b548
jne 0x1002b1c2
mov dword [ebp - 0x38], 1
jmp 0x1002b1c6
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
je 0x1002b1d9
mov dword [ebp - 0x48], 1
jmp 0x1002b1dd
and dword [ebp - 0x48], 0
imul esi, dword [ebp - 0x48], 0x7727
push 1
mov ecx, dword [ebp - 0x44]
call fcn.1002273f
cmp esi, dword [eax]
jne 0x1002b1fb
mov dword [ebp - 0x2c], 1
jmp 0x1002b1ff
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xfe24307a
jb 0x1002b211
mov dword [ebp - 0x34], 1
jmp 0x1002b215
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0xef4a0426
jbe 0x1002b227
mov dword [ebp - 0x3c], 1
jmp 0x1002b22b
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x3c]
lea ecx, [edx + ecx + 9]
cmp dword [eax], ecx
jne 0x1002b247
mov dword [ebp - 0x6c], 1
jmp 0x1002b24b
and dword [ebp - 0x6c], 0
push 0
mov ecx, dword [ebp - 0x44]
call fcn.1002273f
cmp dword [eax], 3
jae 0x1002b263
mov dword [ebp - 0x28], 1
jmp 0x1002b267
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
jmp 0x1002b283
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
push 1
push dword [ebp - 0x74]
call fcn.1002a7fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret