Function at 0x47a650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f75ba
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5470b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x507cec
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call fcn.004d1e6a
mov ecx, dword [ebp + 0xc]
add esp, 4
push eax
push 0x507cec
call fcn.00425415
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x47a6a7
mov dword [ebp - 0x14], esi
jmp 0x47a6b9
mov eax, dword [ebp + 8]
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x14], eax
mov esi, eax
cmp esi, edi
jne 0x47a6f7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a6e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x40]
push ecx
call fcn.00470880
lea edx, [ebp - 0x40]
push edx
push 0x47a410
push 0x18
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp esi, eax
jbe 0x47a728
call fcn.004d1fe1
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x28], edi
mov ebx, esi
mov esi, eax
cmp dword [ebp - 0x34], eax
jbe 0x47a73c
call fcn.004d1fe1
test edi, edi
je 0x47a745
cmp edi, dword [ebp - 0x40]
je 0x47a74a
call fcn.004d1fe1
cmp ebx, esi
je 0x47a8db
test edi, edi
jne 0x47a817
call fcn.004d1fe1
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x47a76b
call fcn.004d1fe1
test edi, edi
jne 0x47a81e
call fcn.004d1fe1
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x47a784
call fcn.004d1fe1
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
push 0x18
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x47a872
mov edx, dword [ebp - 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47a872
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], 0
test edi, edi
jne 0x47a7c6
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x14], ecx
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [ebp - 0x14]
push esi
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x47a7e3
mov dword [ecx], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x47a86f
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00475720
add esp, 8
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
cmp dword [edx - 0xc], 0
mov edi, dword [ebp - 0x18]
jne 0x47a825
lea eax, [ebp - 0x18]
push eax
call fcn.00424f20
jmp 0x47a848
mov eax, dword [edi]
jmp 0x47a761
mov eax, dword [edi]
jmp 0x47a77a
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00425486
mov ecx, dword [ebp + 0xc]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0047a450
add esp, 8
lea eax, [edi - 0x10]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a86f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x28]
test edi, edi
jne 0x47a8cf
call fcn.004d1fe1
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x47a887
call fcn.004d1fe1
test dword [ebx], 0xffff0000
je 0x47a8af
test edi, edi
jne 0x47a8d3
call fcn.004d1fe1
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x47a8a4
call fcn.004d1fe1
mov ecx, dword [ebx]
push ecx
call fcn.004d20e7
add esp, 4
test edi, edi
jne 0x47a8d7
call fcn.004d1fe1
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x47a8c4
call fcn.004d1fe1
mov eax, dword [ebp - 0x30]
add ebx, 4
jmp 0x47a730
mov eax, dword [edi]
jmp 0x47a87d
mov eax, dword [edi]
jmp 0x47a89a
mov eax, dword [edi]
jmp 0x47a8ba
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x10], eax
je 0x47a8ea
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0
call fcn.00470a10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a91d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret