Function at 0x78346d65
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x783aeda8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x783c8018]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x8c], 0
je 0x78347248
cmp dword [ebx + 0x98], 0
je 0x78347248
mov edi, dword [ebp + 8]
push edi
lea esi, [esp + 0x30]
call fcn.78347a7d
and dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0x782f0130
and dword [esp + 0x98], 0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 6
call esi
push eax
push 2
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x40]
call sym.MFC80U.DLL_Ordinal_1271
and dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x782f0130
push 0x10
mov byte [esp + 0x9c], 1
call esi
push eax
push 3
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x38]
call sym.MFC80U.DLL_Ordinal_1271
mov eax, dword [ebx + 0x134]
mov dword [eax + 0x10], 1
cmp dword [ebx + 0x118], esi
mov dword [esp + 0x14], esi
jbe 0x78347207
and dword [esp + 0x18], esi
jmp 0x78346e4d
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x14]
lea ecx, [ebx + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x24]
test edi, edi
mov dword [esp + 0x1c], eax
jne 0x78346e64
xor eax, eax
jmp 0x78346e67
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x90]
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
mov eax, dword [ebx + 0x114]
mov ecx, dword [ebx + 0x134]
add eax, esi
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x114]
lea ecx, [eax + esi]
cmp ecx, eax
jb 0x78346ec0
lea ecx, [eax + esi]
cmp ecx, esi
jb 0x78346ec0
mov eax, dword [ebx + 0x134]
mov edx, dword [eax]
mov edx, dword [edx + 0x74]
movzx edx, word [edx + 0x1e]
cmp ecx, edx
ja 0x78346ec0
mov ecx, dword [ebx + 0x8c]
mov edx, dword [ecx]
push eax
push dword [ebx + 0x90]
call dword [edx + 0x160]
mov eax, dword [ebx + 0x90]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push dword [eax + 8]
call esi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x90]
push 8
push dword [eax + 8]
call esi
push dword [esp + 0x20]
mov ecx, dword [ebx + 0x134]
push eax
push 0
add ecx, 0x24
push 0
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0x134]
mov ecx, dword [ebx + 0x90]
push 2
add eax, 0x24
push eax
push dword [ecx + 8]
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
mov eax, dword [ebx + 0xb0]
mov ecx, dword [esp + 0x18]
lea esi, [ecx + eax]
cmp dword [esi + 0x18], 0
mov dword [esp + 0x20], esi
jne 0x78346fdf
push dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x194]
cmp dword [ebx + 0x10c], 0
je 0x78346fdf
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call sym.MFC80U.DLL_Ordinal_2626
mov ecx, dword [eax + 4]
mov eax, dword [eax]
neg ecx
neg eax
cmp dword [ebx + 0x80], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
je 0x78346fdf
lea eax, [esp + 0x7c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
mov ecx, dword [ebx + 0x68]
cmp ecx, eax
jge 0x78346fb1
mov eax, dword [esp + 0x84]
sub eax, ecx
sub eax, dword [esp + 0x7c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
mov ecx, dword [ebx + 0x6c]
cmp ecx, eax
jge 0x78346fdf
mov eax, dword [esp + 0x88]
sub eax, ecx
sub eax, dword [esp + 0x80]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x3c]
push dword [esp + 0x30]
mov eax, dword [edi]
push dword [esp + 0x30]
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 0x40]
push 0
push 0
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_6058
mov eax, dword [edi]
push 5
mov ecx, edi
call dword [eax + 0x2c]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_5636
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_Rectangle]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_5636
mov eax, dword [esi + 4]
add eax, 3
push eax
mov eax, dword [esi + 8]
inc eax
push eax
lea eax, [esp + 0x64]
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_4117
mov eax, dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi + 8]
inc eax
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_3995
mov eax, dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi]
add eax, 3
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_4117
mov eax, dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi + 8]
inc eax
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_3995
lea edi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [esp + 0x6c]
inc dword [esp + 0x70]
sub dword [esp + 0x74], 2
sub dword [esp + 0x78], 2
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [ebx + 0x134]
cmp dword [eax + 0x10], 0
mov edi, dword [esp + 0x14]
je 0x783471d3
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
mov ecx, dword [ebx + 0x114]
movzx eax, word [eax + 0x1e]
lea edx, [ecx + edi]
cmp edx, eax
ja 0x783471d3
mov eax, dword [ebx]
inc edi
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x198]
mov esi, dword [esp + 0x20]
push dword [esi + 0x1c]
mov ecx, dword [ebx + 0x90]
push dword [esi + 0x18]
call sym.MFC80U.DLL_Ordinal_5978
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0xd
call dword [eax + 0x7c]
mov ecx, dword [ebx + 0x90]
lea eax, [esp + 0x24]
push eax
call sym.MFC80U.DLL_Ordinal_5212
mov eax, dword [esi]
mov esi, dword [esi + 4]
add dword [esp + 0x24], eax
add dword [esp + 0x28], esi
inc dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
inc dword [esp + 0x28]
add dword [esp + 0x28], eax
push dword [esp + 0x28]
mov ecx, dword [ebx + 0x90]
push dword [esp + 0x28]
call sym.MFC80U.DLL_Ordinal_6045
mov ecx, dword [ebx + 0x90]
call sym.MFC80U.DLL_Ordinal_1418
push dword [ebx + 0x134]
mov ecx, dword [ebx + 0x8c]
push dword [ebx + 0x90]
mov eax, dword [ecx]
call dword [eax + 0x180]
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
call dword [eax + 0x20]
push dword [esp + 0x1c]
lea ecx, [ebx + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x28]
add dword [esp + 0x18], 0x28
cmp edi, dword [ebx + 0x118]
mov dword [esp + 0x14], edi
jb 0x78346e46
jmp 0x78347207
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
call dword [eax + 0x20]
push dword [esp + 0x1c]
lea ecx, [ebx + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x28]
test edi, edi
jne 0x78347207
mov eax, dword [ebx + 0x114]
cmp eax, 1
jbe 0x78347207
push 1
dec eax
push eax
mov ecx, ebx
call sym.MFC80U.DLL_Ordinal_5779
lea ecx, [esp + 0x3c]
call sym.MFC80U.DLL_Ordinal_1925
lea ecx, [esp + 0x34]
call sym.MFC80U.DLL_Ordinal_1925
mov byte [esp + 0x98], 0
mov esi, 0x782f0130
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.78319eaa
or dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
call fcn.78319eaa
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4