Function at 0x46e180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cff7a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x50ac94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x4df5f8
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call fcn.004ae67a
mov ecx, dword [ebp + 0xc]
add esp, 4
push eax
push 0x4df5f8
call fcn.004241cf
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x46e1d7
mov dword [ebp - 0x14], esi
jmp 0x46e1e9
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 0x46e227
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 0x46e213
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.00450670
lea edx, [ebp - 0x40]
push edx
push 0x46df40
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 0x46e258
call fcn.004ae7f1
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x28], ebx
mov edi, esi
mov dword [ebp - 0x24], edi
mov esi, eax
cmp dword [ebp - 0x34], eax
jbe 0x46e26f
call fcn.004ae7f1
test ebx, ebx
je 0x46e278
cmp ebx, dword [ebp - 0x40]
je 0x46e27d
call fcn.004ae7f1
cmp edi, esi
je 0x46e464
test ebx, ebx
jne 0x46e38e
call fcn.004ae7f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46e29e
call fcn.004ae7f1
test ebx, ebx
jne 0x46e395
call fcn.004ae7f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46e2b7
call fcn.004ae7f1
mov eax, dword [edi]
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 0x46e3fb
mov edx, dword [ebp - 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46e3fb
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], 0
test edi, edi
jne 0x46e2f9
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 0x46e316
mov dword [ecx], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x46e3f8
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00468e70
add esp, 8
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x46e3ae
mov ecx, dword [ebp - 0x18]
lea esi, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp esi, edi
je 0x46e3d4
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x46e39c
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x46e39c
push esi
call fcn.00424240
mov dword [ebp - 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46e37e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x46e3d4
mov eax, dword [ebx]
jmp 0x46e294
mov eax, dword [ebx]
jmp 0x46e2ad
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004241cf
mov ebx, dword [ebp - 0x28]
jmp 0x46e3d4
mov esi, dword [ebp - 0x18]
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x20], esp
mov edi, esp
push esi
call fcn.00424240
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.0046df80
add esp, 8
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e3f8
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, dword [ebp - 0x24]
test ebx, ebx
jne 0x46e458
call fcn.004ae7f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46e410
call fcn.004ae7f1
test dword [edi], 0xffff0000
je 0x46e438
test ebx, ebx
jne 0x46e45c
call fcn.004ae7f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46e42d
call fcn.004ae7f1
mov eax, dword [edi]
push eax
call fcn.004aedc5
add esp, 4
test ebx, ebx
jne 0x46e460
call fcn.004ae7f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46e44d
call fcn.004ae7f1
mov eax, dword [ebp - 0x30]
add edi, 4
jmp 0x46e260
mov eax, dword [ebx]
jmp 0x46e406
mov eax, dword [ebx]
jmp 0x46e423
mov eax, dword [ebx]
jmp 0x46e443
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x10], eax
je 0x46e473
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], 0
call fcn.004506d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e4a6
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