Function at 0x10036bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov edx, 1
xor eax, eax
lea ebx, [edi + 0x140]
mov dword [ebp - 0x24], ebx
lock cmpxchg dword [ebx], edx
cmp eax, 2
jne 0x10036bf2
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
je 0x10036e7b
cmp eax, 1
jne 0x10036c3c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x144], eax
je 0x10036e7b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
push 1
mov esi, eax
call edi
cmp esi, 1
je 0x10036c18
xor eax, eax
cmp esi, 2
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x144], eax
xor ebx, ebx
push 2
mov dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [0x10219950]
mov dword [ebp - 4], eax
test eax, eax
je 0x10036ce4
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10036cdb
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10036cdb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10036cd2
push dword [ebp - 8]
call fcn.102135a7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10036cd2
push dword [ebp - 8]
push dword [ebp - 0x18]
push ebx
call fcn.102134e1
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x10036d2c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10219e0c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10036d20
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 1
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
push ebx
call fcn.10213559
mov eax, dword [ebp - 8]
add esp, 4
mov dword [edi + 0x150], eax
test eax, eax
je 0x10036d74
mov ebx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0x14]
shr eax, 0x10
movzx edx, cx
cmp ax, 2
ja 0x10036d6e
jb 0x10036d62
test bx, bx
jne 0x10036d6e
shr ecx, 0x10
test ecx, ecx
jne 0x10036d6e
mov eax, 0x3ef
cmp dx, ax
ja 0x10036d6e
mov dword [edi + 0x14c], 1
jmp 0x10036d74
mov dword [edi + 0x14c], esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.1001d810
add esp, 4
test eax, eax
jne 0x10036dad
mov dword [edi + 0x148], esi
mov ebx, 2
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10036da2
mov eax, dword [ebp - 0x28]
xchg dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x148], eax
test eax, eax
je 0x10036d8a
xor esi, esi
lea ebx, [edi + 4]
push dword [esi*4 + 0x1021c710]
push dword [edi + 0x148]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
cmp esi, 7
jae 0x10036de1
test eax, eax
je 0x10036e19
inc esi
add ebx, 4
cmp esi, 0x4f
jb 0x10036dc3
mov eax, dword [edi + 0x18]
push 0
call eax
mov esi, eax
test esi, esi
je 0x10036e5b
push str.JudgeVersion
push dword [edi + 0x148]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10036e54
call eax
mov esi, eax
test esi, esi
jne 0x10036e22
lea ebx, [eax + 5]
jmp 0x10036e60
mov ebx, 3
xor esi, esi
jmp 0x10036e60
mov eax, dword [edi + 4]
call eax
test eax, eax
jne 0x10036e30
lea ebx, [eax + 6]
jmp 0x10036e32
xor ebx, ebx
mov eax, dword [edi + 0xc]
call eax
mov esi, eax
test esi, esi
jne 0x10036e42
lea ebx, [eax + 6]
jmp 0x10036e60
mov dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
jmp 0x10036d8f
xor esi, esi
lea ebx, [esi + 3]
jmp 0x10036e60
mov ebx, 4
push dword [edi + 0x148]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x148], 0
jmp 0x10036d8f
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4