Function at 0x404ae9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp dword [eax + 8], 0
jne 0x404b00
jmp 0x404d74
push 1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x10]
push edx
push 0x30
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ax, word [edx]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x404b5f
jmp 0x404d74
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00404d80
add esp, 4
mov dword [ebp - 4], eax
push 0x18
push 0
lea edx, [ebp - 0x28]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x34]
push eax
call fcn.00404dd0
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 4], 0
je 0x404bad
push 0x18
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x404bf6
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + 0xc]
mov word [ebp - 0x18], dx
mov eax, dword [ebp - 0x38]
mov cx, word [eax + 0xe]
mov word [ebp - 0x16], cx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dx, word [ecx + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x38]
mov ax, word [edx + 8]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + 0xa]
mov word [ebp - 0x1a], dx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
push eax
call fcn.00404da0
add esp, 4
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0
jmp 0x404c23
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jge 0x404d1f
cmp dword [ebp - 0x10], 0
jne 0x404c49
push 5
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x3c], eax
jmp 0x404c58
push 2
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x404c7e
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [ebp - 0x14]
je 0x404c7e
push 2
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x3c], eax
jmp 0x404c58
cmp dword [ebp - 0x3c], 0
jne 0x404c89
jmp 0x404d1f
push 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
push ecx
push 0x30
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00404f00
add esp, 8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 4], 0
je 0x404cd1
push 0x18
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x404d1a
mov edx, dword [ebp - 0x38]
mov ax, word [edx + 0xc]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + 0xe]
mov word [ebp - 0x16], dx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov ax, word [edx + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x38]
mov cx, word [eax + 8]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x38]
mov ax, word [edx + 0xa]
mov word [ebp - 0x1a], ax
jmp 0x404c1a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404ff0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x14], 0
mov esp, ebp
pop ebp
ret