Function at 0x4641e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x464858
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
mov eax, ebx
call fcn.00404ef0
mov esi, eax
push esi
call sub.kernel32.dll_BeginUpdateResourceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46483d
xor eax, eax
push ebp
push 0x464836
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417044]
call fcn.00403c74
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x46480e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x416c28]
call fcn.00403c74
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4647f1
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push esi
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4647db
xor eax, eax
push ebp
push 0x4647d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x38]
push eax
push 0x463c7c
push 0xe
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_EnumResourceNamesA
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x46448f
lea ecx, [ebp - 0x54]
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x54], 0
jne 0x4642ef
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x28], eax
jmp 0x464307
lea ecx, [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x58]
call fcn.00404ef0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x3c]
push eax
push 0x463c64
mov eax, dword [ebp - 0x28]
push eax
push 0xe
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_EnumResourceLanguagesA
test eax, eax
jne 0x464344
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x464494
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.00418f90
mov edi, eax
push edi
mov eax, dword [ebp - 0x28]
push eax
push 0xe
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceExA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x46439d
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x4643c9
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4643f1
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x34]
movzx ebx, word [eax + 4]
dec ebx
test ebx, ebx
jl 0x464450
inc ebx
xor esi, esi
mov eax, esi
shl eax, 3
sub eax, esi
mov edx, dword [ebp - 0x34]
push esi
push edi
lea esi, [edx + eax*2 + 6]
lea edi, [ebp - 0x4e]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
push 0
push 0
push edi
movzx eax, word [ebp - 0x42]
push eax
push 3
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UpdateResourceA
test eax, eax
jne 0x46444c
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
inc esi
dec ebx
jne 0x464400
push 0
push 0
push edi
mov eax, dword [ebp - 0x28]
push eax
push 0xe
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UpdateResourceA
test eax, eax
jne 0x464481
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x46435e
jmp 0x464494
xor eax, eax
mov dword [ebp - 0x28], eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00404ef0
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4647bd
xor eax, eax
push ebp
push 0x4647b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x38]
push eax
push 0x463c7c
push 0xe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_EnumResourceNamesA
test eax, eax
jne 0x4644ff
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x46479f
lea ecx, [ebp - 0x5c]
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x5c], 0
jne 0x464531
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x464549
lea ecx, [ebp - 0x60]
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x60]
call fcn.00404ef0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
jne 0x464555
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x3c]
push eax
push 0x463c64
mov eax, dword [ebp - 0x2c]
push eax
push 0xe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_EnumResourceLanguagesA
test eax, eax
jne 0x464597
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x46479f
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.00418f90
mov edi, eax
push edi
mov eax, dword [ebp - 0x2c]
push eax
push 0xe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindResourceExA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4645f5
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x464626
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x464653
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x34]
movzx ebx, word [eax + 4]
dec ebx
test ebx, ebx
jl 0x464768
inc ebx
xor esi, esi
mov eax, esi
shl eax, 3
sub eax, esi
mov edx, dword [ebp - 0x34]
push esi
push edi
lea esi, [edx + eax*2 + 6]
lea edi, [ebp - 0x4e]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
push 3
movzx eax, word [ebp - 0x42]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4646b7
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4646eb
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x46471b
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 0x30]
push eax
push edi
movzx eax, word [ebp - 0x42]
push eax
push 3
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UpdateResourceA
test eax, eax
jne 0x464760
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x46483d
inc esi
dec ebx
jne 0x464666
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 0x34]
push eax
push edi
mov eax, dword [ebp - 0x28]
push eax
push 0xe
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UpdateResourceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x4645b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4647bd
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4647db
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4647f8
mov eax, dword [ebp - 0x3c]
call fcn.00403ca4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46485f
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00404a54
ret