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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x1030182e
mov dword [ebp - 0x178], 0
jmp 0x1030183a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x170]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x16c], eax
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
call sym.tk85.dll_TkWinGetPlatformId
cmp eax, 2
jne 0x103018a6
lea ecx, [ebp - 0x168]
push ecx
push 0x20
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.GDI32.dll_GetTextFaceW]
jmp 0x103018bc
lea eax, [ebp - 0x168]
push eax
push 0x20
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.GDI32.dll_GetTextFaceA]
lea edx, [ebp - 0xe8]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [0x10350954]
push ecx
mov edx, dword [0x103513c8]
mov eax, dword [edx + 0x4a8]
call eax
add esp, 0x10
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x170]
mov dword [eax + 0x7c], ecx
mov edx, dword [ebp - 0x128]
sub edx, dword [ebp - 0x11c]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x80], edx
mov ecx, dword [ebp + 0x14]
add ecx, 0x24
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xe8]
push edx
call sym.tk85.dll_Tk_GetUid
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x80]
neg eax
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.102aa890
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
xor eax, eax
cmp dword [ebp - 0x10c], 0x1f4
setg al
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
movzx edx, byte [ebp - 0xf8]
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], edx
movzx ecx, byte [ebp - 0xf7]
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp + 0x14]
add edx, 0x3c
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x124]
mov dword [eax], ecx
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x120]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x110]
mov dword [ecx + 8], edx
movzx eax, byte [ebp - 0xf5]
and eax, 1
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xf0]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x74], 1
mov eax, dword [ebp + 0x14]
add eax, 0x50
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x78]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x174]
push edx
call fcn.103017c0
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x78]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xec], eax
call fcn.102ea630
cmp dword [ebp - 0xec], eax
jne 0x10301a4d
mov ecx, dword [ebp + 0x14]
add ecx, 0x84
push ecx
push 0x7f
push 0
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.GDI32.dll_GetCharWidthW]
jmp 0x10301a67
mov eax, dword [ebp + 0x14]
add eax, 0x84
push eax
push 0x7f
push 0
mov ecx, dword [ebp - 0x174]
push ecx
call dword [sym.imp.GDI32.dll_GetCharWidthA]
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [0x103513c8]
mov ecx, dword [eax + 0x1e8]
call ecx
add esp, 4
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x174]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x170]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1022118e
mov esp, ebp
pop ebp
ret