Function at 0x78504a50
Capabilities:
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x20]
test byte [0x78508020], 8
jne 0x78504b00
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x78504cc0
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x78504ca0
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x78504e40
mov dword [esp + 8], 5
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._FindResourceW_12
sub esp, 0xc
test eax, eax
je 0x78504cd3
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._LoadResource_8
sub esp, 8
mov edi, eax
test eax, eax
je 0x78504e50
mov esi, dword [0x7850a028]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], sym._ps_dlg_proc_16
mov eax, dword [ebx + 8]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._DialogBoxIndirectParamW_20
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], str.__p__n
mov dword [esp + 0x10], 0x2ba
mov dword [esp + 0xc], str.OleUIPasteSpecialW
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
test byte [0x78508020], 8
je 0x78504a6c
mov dword [esp], 0x78508020
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x78504a6c
mov eax, dword [ebx + 4]
call sym._dump_ps_flags
test byte [0x78508020], 8
jne 0x78504e70
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
jg 0x78504b8c
jmp 0x78504ce2
add esi, 1
cmp esi, dword [ebx + 0x2c]
jge 0x78504ce2
test byte [0x78508020], 8
je 0x78504b80
lea edx, [esi + esi*8]
shl edx, 2
mov eax, edx
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x14], edx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
movzx eax, word [eax]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], str.arrPasteEntries__d_:_cFormat__08x_pTargetDevice__p_dwAspect__d_lindex__d_tymed__d_n
mov dword [esp + 0x10], 0x68
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
test byte [0x78508020], 8
je 0x78504b80
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 4], 0xffffffff
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + edx + 0x14]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x14], str._tformat_name__s_result_text__s_flags__04x_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x10], 0x6c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x78504b80
mov eax, dword [ebx + 0x20]
mov esi, dword [0x7850a028]
test eax, eax
jne 0x78504acb
mov eax, 0x454
jmp 0x78504a8d
lea eax, [ebx + 0x24]
mov dword [esp], eax
call sym._OleGetClipboard_4
sub esp, 4
jmp 0x78504a77
lea esp, [ebp - 0xc]
mov eax, 0x6e
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, dword [ebx + 0x34]
xor esi, esi
test ecx, ecx
jg 0x78504cf8
jmp 0x78504d45
add esi, 1
cmp esi, dword [ebx + 0x34]
jge 0x78504d45
test byte [0x78508020], 8
je 0x78504cf0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.arrLinkTypes__d___08x_n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0x70
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x78504cf0
mov edx, dword [ebx + 0x38]
xor esi, esi
test edx, edx
jne 0x78504d5f
jmp 0x78504a6c
add esi, 1
cmp esi, dword [ebx + 0x38]
jae 0x78504a6c
test byte [0x78508020], 8
je 0x78504d53
mov eax, esi
shl eax, 4
add eax, dword [ebx + 0x3c]
je 0x78504e60
mov ecx, eax
shr ecx, 0x10
je 0x78504e24
movzx edx, byte [eax + 0xf]
mov dword [esp + 0x2c], edx
movzx edx, byte [eax + 0xe]
mov dword [esp + 0x28], edx
movzx edx, byte [eax + 0xd]
mov dword [esp + 0x24], edx
movzx edx, byte [eax + 0xc]
mov dword [esp + 0x20], edx
movzx edx, byte [eax + 0xb]
mov dword [esp + 0x1c], edx
movzx edx, byte [eax + 0xa]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + 8]
mov dword [esp + 0x10], edx
movzx edx, word [eax + 6]
mov dword [esp + 0xc], edx
movzx edx, word [eax + 4]
mov dword [esp + 8], edx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.lpClsidExclude__u___s_n
mov dword [esp + 0x10], 0x72
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x78504d53
mov dword [esp + 4], eax
mov dword [esp], str._guid_0x_04lx_
call sym._wine_dbg_sprintf
jmp 0x78504de3
mov eax, 0x6c
jmp 0x78504aed
mov eax, 0x6f
jmp 0x78504aed
mov eax, 0x78509629
jmp 0x78504de3
mov edx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], str.hwnd__p_caption__s_hook__p_custdata__lx_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x5a
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
mov eax, dword [ebx + 0x1c]
movzx edx, byte [0x78508020]
mov ecx, eax
and edx, 8
shr ecx, 0x10
jne 0x78505020
test dl, dl
je 0x78504b6e
mov edx, dword [ebx + 0x20]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], str.hinst__p_template__04x_hresource__p_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x5d
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
mov eax, dword [ebx + 0x2c]
test byte [0x78508020], 8
je 0x78504b6e
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x14], str.dataobj__p_arrpasteent__p_cpasteent__d_arrlinktype__p_clinktype__d_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x60
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
test byte [0x78508020], 8
je 0x78504b6e
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x14], str.cclsidex__d_lpclsidex__p_nselect__d_flink__d_hmetapict__p_size__d__d__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x63
mov dword [esp + 0xc], str.dump_pastespecial
mov dword [esp + 8], 0x7850957d
mov dword [esp + 4], 0x78508020
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x78504b6e
test dl, dl
je 0x78504b6e
mov esi, dword [ebx + 0x20]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], str.hinst__p_template__s_hresource__p_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x5f
jmp 0x78504f1b