Function at 0x1003d5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100847d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ecx
xor edi, edi
mov dword [ebp - 4], 0
push edi
push 0x1008fa88
mov dword [ebp - 0x10], edi
call fcn.10023530
test ebx, ebx
je 0x1003d600
mov dword [ebp - 0x18], ebx
jmp 0x1003d612
push 3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
test ebx, ebx
jne 0x1003d620
xor edi, edi
jmp 0x1003d7c3
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
push 0x1003d310
push 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
je 0x1003d78f
jmp 0x1003d650
push 0x18
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1003d76b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003d76b
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
test edx, edx
mov dword [ebp - 0x20], 0
push eax
cmovne ecx, edx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0xc]
push edi
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003d6a7
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
test edx, edx
je 0x1003d76b
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003ad00
add esp, 4
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov edi, dword [edx]
cmp dword [edi - 0xc], 0
jne 0x1003d723
mov eax, dword [ebp - 0x1c]
add edi, 0xfffffff0
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x1003d743
cmp dword [edi + 0xc], 0
jl 0x1003d716
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x1003d716
mov ecx, ebx
call fcn.100236e0
mov dword [ebp - 0x20], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003d70c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1003d743
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.10023530
jmp 0x1003d743
mov ebx, dword [ebp - 0x1c]
push ecx
add ebx, 0xfffffff0
mov edi, esp
mov ecx, ebx
call fcn.100236e0
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [edi], eax
call fcn.1003d360
add esp, 4
mov edi, 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], edi
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003d766
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
jmp 0x1003d76e
mov edi, dword [ebp - 0x10]
mov eax, dword [esi]
test eax, 0xffff0000
je 0x1003d780
push eax
call fcn.1006ac0c
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x2c]
jne 0x1003d650
mov esi, dword [ebp - 0x30]
cmp dword [ebp - 0x24], ebx
je 0x1003d79e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x1003d7c0
push esi
call fcn.1006abf8
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003d7e4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret