Function at 0x40788a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
mov esi, dword [0xf5c948]
push edi
push 0xf1
push 0x80
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor edi, edi
cmp eax, edi
jne 0x4078bd
xor eax, eax
jmp 0x407b8d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4078b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x4078b6
cmp word [ebx], 1
je 0x4078fc
push str.pData__wVersion__1
push edi
push 0x1ca
push str.E:MyGitmylibraryPeMemoryRunPeMemoryRun2wtl_atlframe.h
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x4078fc
int3
movzx eax, word [ebx + 6]
lea esi, [ebp - 0x260]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x260], edi
call fcn.0040b1fc
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x40795d
push str.pTBBtn___0
push edi
push 0x1d0
push str.E:MyGitmylibraryPeMemoryRunPeMemoryRun2wtl_atlframe.h
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x40793b
int3
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x260], eax
je 0x4078b6
lea eax, [ebp - 0x260]
call fcn.00408e01
jmp 0x4078b6
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xc], edi
cmp dx, word [ebx + 6]
jae 0x4079ad
add eax, 8
cmp word [ebx + ecx*2 + 8], di
je 0x40798c
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dword [eax - 8], edx
movzx edx, word [ebx + ecx*2 + 8]
mov dword [eax - 4], edx
mov word [eax], 4
jmp 0x40799b
mov dword [eax - 8], 8
mov dword [eax - 4], edi
mov word [eax], 0x100
mov dword [eax + 8], edi
mov dword [eax + 4], edi
movzx edx, word [ebx + 6]
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x40796d
push edi
push dword [0xf5c944]
push 0xe800
push dword [ebp + 8]
push 0x64
push 0x64
push edi
push edi
push 0x5600094c
push edi
push str.ToolbarWindow32
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4079eb
push 0x433a4c
push edi
push 0x1fc
jmp 0x407926
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0x14
push 0x41e
push eax
call esi
push edi
push edi
push 0x31
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x407a17
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 4], eax
push 0x38
lea eax, [ebp - 0x58]
push edi
push eax
mov dword [ebp - 0x5c], edi
call fcn.00416960
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x407a4e
push str.m_hFont___0
push edi
push 0x2a5
push str.e:mygitmylibrarypememoryrunpememoryrun2wtl_atlgdi.h
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x407a4e
int3
lea eax, [ebp - 0x5c]
push eax
push 0x3c
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x5c]
cdq
xor eax, edx
sub eax, edx
movzx eax, ax
push ecx
mov dword [ebp - 4], eax
mov eax, esp
mov dword [eax], 0x80
call fcn.00405463
movzx eax, ax
pop ecx
cmp eax, 4
jbe 0x407ae5
mov ecx, 0xff000000
cmp eax, 0x20
jne 0x407a8f
or ecx, 0xffffffff
movzx eax, word [ebx + 2]
push 0x2040
push edi
push ecx
push 1
push eax
push 0x80
push dword [0xf5c948]
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageA]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x407ad5
push 0x435d98
push edi
push 0x21b
push str.E:MyGitmylibraryPeMemoryRunPeMemoryRun2wtl_atlframe.h
push 2
call fcn.00415b00
add esp, 0x14
cmp eax, 1
jne 0x407ad5
int3
push dword [ebp - 0xc]
push edi
push 0x430
push dword [ebp - 8]
call esi
jmp 0x407b0b
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x80
push 0x413
push dword [ebp - 8]
call esi
xor edi, edi
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push 0x414
push dword [ebp - 8]
call esi
movzx eax, word [ebx + 4]
cmp ax, word [ebp - 4]
ja 0x407b29
movzx eax, word [ebp - 4]
movzx ecx, word [ebx + 2]
movzx eax, ax
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x420
push dword [ebp - 8]
call esi
movzx eax, word [ebx + 4]
cmp ax, word [ebp - 4]
ja 0x407b4f
movzx eax, word [ebp - 4]
mov cx, word [ebx + 2]
add eax, 7
movzx eax, ax
add cx, 7
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x41f
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x260], eax
je 0x407b8a
lea eax, [ebp - 0x260]
call fcn.00408e01
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret