Function at 0x5d50cbc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d516c10
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d560624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 8]
lea ebx, [ecx + 8]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [0x5d561008]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5d562560]
mov ecx, 0x5d561008
call esi
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov ebx, dword [edi]
push 0x5d560fac
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 0x5d560fac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5d560fc8]
mov byte [ebp - 0x24], 1
test eax, eax
js 0x5d50ce24
jne 0x5d50cc61
mov edi, dword [0x5d560f9c]
lea ecx, [ebp - 0x28]
call fcn.5d50e22a
jmp 0x5d50cc79
jle 0x5d50ce52
mov eax, dword [0x5d560fc4]
push 0x5d560fac
mov edi, dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x5d50ce2c
mov eax, ebx
shr eax, 4
mov dword [ebp - 0x20], eax
inc eax
movzx eax, ax
mov dword [ebp - 0x24], eax
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x5d50ce08
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d50ce08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d50ce08
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x18]
lea edx, [eax + esi]
and ecx, 0xf
jbe 0x5d50ccf7
cmp esi, edx
jae 0x5d50ce08
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x5d50cce1
cmp esi, edx
jae 0x5d50ce08
cmp word [esi], 0
je 0x5d50ce08
test edi, edi
je 0x5d50ce2c
mov eax, dword [ebp - 0x20]
push 0
inc eax
movzx eax, ax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x5d50cdeb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d50cdeb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d50cdeb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + esi]
and edx, 0xf
jbe 0x5d50cd78
cmp esi, ecx
jae 0x5d50cdeb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x5d50cd62
cmp esi, ecx
jae 0x5d50cdeb
cmp word [esi], 0
je 0x5d50cdeb
mov ebx, dword [ebp - 0x14]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx + 8]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x5d50cda5
push edi
lea ecx, [ebx + 8]
call fcn.5d50d4d0
movzx eax, word [esi]
lea ecx, [esi + 2]
add eax, eax
mov byte [ebp - 4], 3
push eax
push ecx
lea esi, [edi + edi]
push esi
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
mov ecx, eax
call fcn.5d50d070
mov byte [ebp - 4], 2
mov eax, dword [ebx + 8]
cmp edi, dword [eax - 8]
jg 0x5d50ce5c
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx + 8]
mov word [esi + eax], cx
lea eax, [ecx + 1]
jmp 0x5d50cded
xor eax, eax
test eax, eax
je 0x5d50ce2c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x1c]
push ecx
inc ecx
mov dword [ebp - 0x1c], ecx
call fcn.5d50d760
mov edi, eax
mov eax, dword [ebp - 0x24]
test edi, edi
jne 0x5d50cc97
jmp 0x5d50ce2c
lea ecx, [ebp - 0x28]
call fcn.5d50e22a
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebx + 4]
mov ecx, esi
call fcn.5d50d730
push eax
push esi
lea ecx, [ebx + 8]
call fcn.5d50d420
jmp 0x5d50cdf1
mov ecx, 0xc000008c
call fcn.5d51f765
mov ecx, 0x80070057
call fcn.5d51bcaa
int3