Function at 0x51ec30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575ac3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x440
mov eax, dword [0x5e56f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44c], ecx
call fcn.00513010
mov dword [ebp - 0x450], eax
push 4
lea ecx, [ebp - 0x18]
call fcn.00520d90
lea ecx, [ebp - 0x18]
call fcn.0051b360
mov dword [ebp - 4], 0
push 8
lea ecx, [ebp - 0x20]
call fcn.00520d90
mov eax, dword [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0051b610
push 0x404
lea ecx, [ebp - 0x424]
call fcn.00520d90
lea ecx, [ebp - 0x424]
call fcn.0051b360
mov byte [ebp - 4], 1
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ee890
add esp, 8
mov dword [ebp - 0x440], eax
push 0x60
push 0
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x51ed12
push 2
push 0
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x51ed2b
call fcn.0050d9f0
mov dword [ebp - 0x42c], eax
jmp 0x51eea7
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x51ed5f
call fcn.0050d9f0
mov dword [ebp - 0x42c], eax
jmp 0x51eea7
mov ecx, dword [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x51ed92
call fcn.0050d9f0
mov dword [ebp - 0x42c], eax
jmp 0x51eea7
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x430], eax
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x448], edx
mov eax, dword [ebp - 0x430]
add eax, 1
cmp eax, dword [ebp - 0x430]
jae 0x51edd8
mov dword [ebp - 0x42c], 0x8007000e
jmp 0x51eea7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x430]
add ecx, 1
push ecx
lea ecx, [ebp - 0x424]
call fcn.0051c530
jmp 0x51edf9
mov dword [ebp - 4], 1
jmp 0x51ee09
lea ecx, [ebp - 0x424]
call fcn.00542bc0
test eax, eax
jne 0x51ee27
mov dword [ebp - 0x42c], 0x8007000e
jmp 0x51eea7
mov edx, dword [ebp - 0x430]
push edx
lea ecx, [ebp - 0x424]
call fcn.00542bc0
push eax
mov eax, dword [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
push 0
call fcn.00513010
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x51ee72
call fcn.0050d9f0
mov dword [ebp - 0x42c], eax
jmp 0x51eea7
lea ecx, [ebp - 0x424]
call fcn.00542bc0
xor edx, edx
mov ecx, dword [ebp - 0x438]
mov word [eax + ecx*2], dx
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x424]
call fcn.00542bc0
push eax
lea ecx, [ebp - 0x20]
call fcn.0051ea20
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x428], 0
je 0x51eebd
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.0051b780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0051b6e0
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret 0x10