Function at 0x4584bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458966
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
mov eax, ebx
call fcn.00404ef8
mov esi, eax
push esi
call sub.kernel32.dll_BeginUpdateResourceA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x458941
xor eax, eax
push ebp
push 0x45893a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x412fd8]
call fcn.00403c7c
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x45890d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x412bbc]
call fcn.00403c7c
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4588f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push esi
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4588da
xor eax, eax
push ebp
push 0x4588d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
push eax
push 0x457d7c
push 0x10
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_EnumResourceNamesA
test eax, eax
jne 0x4585b3
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4586a4
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x3c], 0
jne 0x4585f3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x30], eax
jmp 0x45860c
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x40]
call fcn.00404ef8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x2c]
push eax
push 0x457d64
mov eax, dword [ebp - 0x30]
push eax
push 0x10
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_EnumResourceLanguagesA
test eax, eax
jne 0x458649
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x458698
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0x2c]
call fcn.00414f24
mov esi, eax
push 0
push 0
push esi
mov eax, dword [ebp - 0x30]
push eax
push 0x10
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UpdateResourceA
test eax, eax
jne 0x458694
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
inc edi
dec ebx
jne 0x458657
inc dword [ebp - 0xc]
dec dword [ebp - 0x38]
jne 0x4585cf
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.00404ef8
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4588bc
xor eax, eax
push ebp
push 0x4588b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
push eax
push 0x457d7c
push 0x10
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_EnumResourceNamesA
test eax, eax
jne 0x45870f
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x458897
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x44], 0
jne 0x45874f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x30], eax
jmp 0x458768
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x48]
call fcn.00404ef8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x2c]
push eax
push 0x457d64
mov eax, dword [ebp - 0x30]
push eax
push 0x10
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_EnumResourceLanguagesA
test eax, eax
jne 0x4587aa
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45888b
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0x2c]
call fcn.00414f24
mov esi, eax
push esi
mov eax, dword [ebp - 0x30]
push eax
push 0x10
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceExA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4587ff
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x458833
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 0x34]
push eax
push esi
mov eax, dword [ebp - 0x30]
push eax
push 0x10
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UpdateResourceA
test eax, eax
jne 0x458883
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
call fcn.004044f8
jmp 0x45894b
inc edi
dec ebx
jne 0x4587bc
inc dword [ebp - 0xc]
dec dword [ebp - 0x38]
jne 0x45872b
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4588bc
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 0x4588da
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4588f7
mov eax, dword [ebp - 0x2c]
call fcn.00403cac
ret
cmp dword [ebp - 0x10], 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45896d
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00404a5c
ret