Function at 0x4641f0
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 0x464860
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 0x464845
xor eax, eax
push ebp
push 0x46483e
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 0x464816
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 0x4647f9
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 0x4647e3
xor eax, eax
push ebp
push 0x4647dc
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 0x463c84
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 0x464497
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 0x4642f7
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x28], eax
jmp 0x46430f
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 0x463c6c
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 0x46434c
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x46449c
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 0x4643a5
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
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 0x4643d1
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4643f9
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
mov eax, dword [ebp - 0x34]
movzx ebx, word [eax + 4]
dec ebx
test ebx, ebx
jl 0x464458
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 0x464454
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
inc esi
dec ebx
jne 0x464408
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 0x464489
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x464366
jmp 0x46449c
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 0x4647c5
xor eax, eax
push ebp
push 0x4647be
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 0x463c84
push 0xe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_EnumResourceNamesA
test eax, eax
jne 0x464507
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4647a7
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 0x464539
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x464551
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 0x46455d
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 0x463c6c
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 0x46459f
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4647a7
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 0x4645fd
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
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 0x46462e
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x46465b
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
mov eax, dword [ebp - 0x34]
movzx ebx, word [eax + 4]
dec ebx
test ebx, ebx
jl 0x464770
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 0x4646bf
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
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 0x4646f3
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x464723
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
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 0x464768
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
call fcn.004044f0
jmp 0x464845
inc esi
dec ebx
jne 0x46466e
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 0x4645b9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4647c5
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 0x4647e3
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 0x464800
mov eax, dword [ebp - 0x3c]
call fcn.00403ca4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464867
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00404a54
ret