Function at 0x46c1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd1ca
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x4d9c38
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call fcn.004ab8ea
mov ecx, dword [ebp + 0xc]
add esp, 4
push eax
push 0x4d9c38
call fcn.00423f13
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x46c227
mov dword [ebp - 0x14], esi
jmp 0x46c239
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 0x46c277
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 0x46c263
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.00462750
lea edx, [ebp - 0x40]
push edx
push 0x46bf90
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 0x46c2a8
call fcn.004aba61
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 0x46c2bf
call fcn.004aba61
test ebx, ebx
je 0x46c2c8
cmp ebx, dword [ebp - 0x40]
je 0x46c2cd
call fcn.004aba61
cmp edi, esi
je 0x46c4b4
test ebx, ebx
jne 0x46c3de
call fcn.004aba61
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46c2ee
call fcn.004aba61
test ebx, ebx
jne 0x46c3e5
call fcn.004aba61
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46c307
call fcn.004aba61
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 0x46c44b
mov edx, dword [ebp - 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c44b
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], 0
test edi, edi
jne 0x46c349
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 0x46c366
mov dword [ecx], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x46c448
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00467170
add esp, 8
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x46c3fe
mov ecx, dword [ebp - 0x18]
lea esi, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp esi, edi
je 0x46c424
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x46c3ec
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x46c3ec
push esi
call fcn.00423f84
mov dword [ebp - 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46c3ce
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 0x46c424
mov eax, dword [ebx]
jmp 0x46c2e4
mov eax, dword [ebx]
jmp 0x46c2fd
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00423f13
mov ebx, dword [ebp - 0x28]
jmp 0x46c424
mov esi, dword [ebp - 0x18]
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x20], esp
mov edi, esp
push esi
call fcn.00423f84
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.0046bfd0
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 0x46c448
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 0x46c4a8
call fcn.004aba61
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46c460
call fcn.004aba61
test dword [edi], 0xffff0000
je 0x46c488
test ebx, ebx
jne 0x46c4ac
call fcn.004aba61
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46c47d
call fcn.004aba61
mov eax, dword [edi]
push eax
call fcn.004ac035
add esp, 4
test ebx, ebx
jne 0x46c4b0
call fcn.004aba61
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46c49d
call fcn.004aba61
mov eax, dword [ebp - 0x30]
add edi, 4
jmp 0x46c2b0
mov eax, dword [ebx]
jmp 0x46c456
mov eax, dword [ebx]
jmp 0x46c473
mov eax, dword [ebx]
jmp 0x46c493
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x10], eax
je 0x46c4c3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], 0
call fcn.0044d7b0
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 0x46c4f6
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