Function at 0x46b481
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x54
lea ebp, [esp - 4]
mov eax, dword [0x515854]
xor eax, ebp
mov dword [ebp + 0x54], eax
push 0x6c
mov eax, 0x4e422d
call fcn.004bf193
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x74]
mov edi, ecx
push 0x28
mov dword [ebp - 0x1c], edi
mov esi, edx
mov dword [ebp - 0x20], eax
call fcn.004b6eb3
pop ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x46b4d4
push eax
call fcn.00445a5b
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x68]
mov dword [edi + 8], eax
dec eax
mov dword [edi + 4], esi
mov dword [edi + 0xc], ecx
je 0x46b592
dec eax
je 0x46b56b
dec eax
jne 0x46b516
push ecx
push esi
call fcn.0046da32
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
jne 0x46b529
test ebx, ebx
je 0x46b522
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
xor eax, eax
jmp 0x46b755
push esi
call fcn.0046da32
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x46b54f
test ebx, ebx
je 0x46b546
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x46b522
mov esi, dword [ebx]
push eax
add esi, 8
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, ebx
call dword [esi]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x46b5dc
mov edx, esi
lea eax, [ebp - 0x5c]
call fcn.004074b0
mov dword [ebp - 4], 4
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x5c]
call fcn.00401650
jmp 0x46b5dc
mov edx, esi
lea eax, [ebp - 0x40]
call fcn.004074b0
lea eax, [ebp]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.00442c8d
pop ecx
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401650
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x46b5c8
lea eax, [ebp + 4]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00407480
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x54]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x46b51a
cmp dword [ebp - 0x18], 0
je 0x46b72e
mov edx, dword [ebx]
push eax
lea eax, [ebp + 0x38]
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov esi, str.Root
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], 5
call fcn.00408e20
test al, al
je 0x46b722
xor ecx, ecx
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.00401870
push dword [ebp - 0x10]
mov byte [ebp - 4], 6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
jmp 0x46b6e9
push dword [ebp - 0x10]
mov eax, dword [ebx]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
push 0xffffffffffffffff
push 0
push eax
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 7
call fcn.00401690
lea esi, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00401650
mov esi, 0x4f5780
lea ecx, [ebp + 0x38]
call fcn.00408e20
test al, al
je 0x46b6df
mov edx, 0x4ec9f0
lea eax, [ebp - 0x40]
call fcn.004074b0
push 0
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x10]
mov byte [ebp - 4], 8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x3c]
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00401650
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x78]
push eax
call fcn.00442c72
pop ecx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.004086e0
lea esi, [ebp - 0x78]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 6
call fcn.00401650
cmp byte [ebp - 0x11], 0
jne 0x46b711
push dword [ebp - 0x10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x46b644
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea esi, [ebp + 0x1c]
call fcn.00401650
lea esi, [ebp + 0x38]
call fcn.00401650
jmp 0x46b522
mov eax, dword [ebp - 0x10]
lea esi, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00401650
mov edi, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0x38]
call fcn.00401650
push dword [ebp + 0x64]
mov ecx, edi
push dword [ebp - 0x10]
push ebx
call fcn.0046c574
mov ecx, dword [ebp - 0x20]
push 1
push eax
push ebx
push edi
call fcn.0046a1cb
mov esi, eax
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x54]
xor ecx, ebp
call fcn.004b6e9f
add ebp, 0x58
leave
ret 0x18