Function at 0x401280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x3c], 0
push 0xc
call fcn.00416ec7
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov word [ebp - 0x44], cx
push 3
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x401300
xor eax, eax
jmp 0x4019de
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
movzx dx, byte [ecx]
mov eax, dword [ebp - 0x34]
mov word [eax], dx
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
movzx ax, byte [edx]
mov ecx, dword [ebp - 0x34]
mov word [ecx + 2], ax
mov edx, dword [ebp - 0x28]
add edx, 2
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
movzx cx, byte [eax]
mov edx, dword [ebp - 0x34]
mov word [edx + 4], cx
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x34]
movzx eax, word [ecx + 4]
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416f01
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 8], ecx
mov dword [ebp - 0x10], 0
jmp 0x4013a6
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 4]
cmp dword [ebp - 0x10], ecx
jge 0x4014be
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [ecx + edx + 1], al
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [ecx + edx + 2], al
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [ecx + edx + 3], al
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
movzx ax, byte [edx]
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp - 0x34]
mov edx, dword [edx + 8]
mov word [edx + ecx + 4], ax
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
movzx dx, byte [ecx]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 8]
mov word [ecx + eax + 6], dx
mov edx, dword [ebp - 0x28]
add edx, 2
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov esi, dword [ebp - 0x34]
mov esi, dword [esi + 8]
mov edx, dword [edx + eax + 8]
mov dword [esi + ecx + 8], edx
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
movzx dx, byte [ecx]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 8]
mov word [ecx + eax + 0xc], dx
mov edx, dword [ebp - 0x28]
add edx, 2
mov dword [ebp - 0x28], edx
jmp 0x40139d
push 0xc
call fcn.00416ec7
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0x14]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0x14]
mov ax, word [edx + 2]
mov word [ecx + 2], ax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0x14]
mov ax, word [edx + 4]
mov word [ecx + 4], ax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx + 4]
shl edx, 4
add edx, 6
mov word [ebp - 0x44], dx
movzx eax, word [ebp - 0x44]
push eax
call fcn.00416f01
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x2c]
add eax, 2
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov ax, word [edx + 2]
mov word [ecx], ax
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov cx, word [eax + 4]
mov word [edx], cx
mov edx, dword [ebp - 0x2c]
add edx, 2
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 4]
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416f01
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov dword [ebp - 0x10], 0
jmp 0x4015a5
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + 4]
cmp dword [ebp - 0x10], ecx
jge 0x4017eb
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov cl, byte [edx + ecx]
mov byte [eax + esi], cl
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x2c]
mov cl, byte [ecx + edx]
mov byte [eax], cl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov dl, byte [edx + eax + 1]
mov byte [esi + ecx + 1], dl
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [edx + eax + 1]
mov byte [ecx], dl
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x10]
shl edx, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov al, byte [eax + ecx + 2]
mov byte [esi + edx + 2], al
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x2c]
mov al, byte [eax + ecx + 2]
mov byte [edx], al
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov cl, byte [ecx + edx + 3]
mov byte [esi + eax + 3], cl
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x2c]
mov cl, byte [ecx + edx + 3]
mov byte [eax], cl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov dx, word [edx + eax + 4]
mov word [esi + ecx + 4], dx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
mov dx, word [edx + eax + 4]
mov word [ecx], dx
mov eax, dword [ebp - 0x2c]
add eax, 2
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x10]
shl edx, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov ax, word [eax + ecx + 6]
mov word [esi + edx + 6], ax
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x2c]
mov ax, word [eax + ecx + 6]
mov word [edx], ax
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov ecx, dword [ecx + edx + 8]
mov dword [esi + eax + 8], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx + edx + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 4]
cmp dword [ebp - 0x10], ecx
jge 0x40179c
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 8]
mov cx, word [ecx + edx + 0xc]
mov word [esi + eax + 0xc], cx
jmp 0x4017c6
mov dx, word [0x58fedc]
add dx, 1
mov word [0x58fedc], dx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 8]
mov cx, word [0x58fedc]
mov word [edx + eax + 0xc], cx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x2c]
mov cx, word [ecx + edx + 0xc]
mov word [eax], cx
mov edx, dword [ebp - 0x2c]
add edx, 2
mov dword [ebp - 0x2c], edx
jmp 0x40159c
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + 4]
shl ecx, 4
add ecx, 6
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call fcn.00515a75
add esp, 8
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x401850
push 0
mov eax, dword [ebp + 8]
push eax
push str.eroare_BeginUpdateResource
mov ecx, dword [0x58fee4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0xc], 0
movzx edx, word [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x1c]
push eax
movzx ecx, word [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xe
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40188f
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.eroare_UpdateResource_RT_GROUP_ICON
mov edx, dword [0x58fee4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x10], 0
jmp 0x4018a1
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx + 4]
cmp dword [ebp - 0x10], edx
jge 0x40190e
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 8]
mov eax, dword [edx + eax + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx*4]
push eax
movzx ecx, word [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
movzx edx, word [ecx + edx + 0xc]
push edx
push 3
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40190c
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.eroare_UpdateResource_RT_ICON
mov edx, dword [0x58fee4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401898
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + 4]
mov dword [ebp - 0x10], ecx
jmp 0x401923
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 4]
cmp dword [ebp - 0x10], ecx
jge 0x40197b
push 0
push 0x541f7e
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
movzx eax, word [edx + eax + 0xc]
push eax
push 3
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401979
push 0
mov edx, dword [ebp + 8]
push edx
push str.eroare_stergere_resurse_vechi
mov eax, dword [0x58fee4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40191a
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x4019a2
push 0
mov edx, dword [ebp + 8]
push edx
push str.eroare_EndUpdateResource
mov eax, dword [0x58fee4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.00416ef6
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.00416ef6
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00416ef6
add esp, 4
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret